title: Send Authorization Token | Gatling
body: <p>I am performance testing our Enterprise API using Gatling. While testing with "Postman" I used to pass following Headers:</p>
  
  <ul>
  <li>API Key</li>
  <li>Authorization Bearer Token</li>
  </ul>
  
  <p>It would be great if someone could help me: How can I pass "API-KEY" and "Authorization Bearer" token as a header in a Gatling request? </p>
  
  <p>Please see my code below:</p>
  
  <pre><code>val headers_10 = Map("Content-Type" -&gt; """application/json""")
  
      val httpConf = http
          .baseURL(perfProdURL)
          .acceptHeader("application/json, */*")
          .acceptCharsetHeader("UTF-8")
  
      val scn = scenario("Vertex API Test01")
          .exec(
              http("request_1")
              .post("/details/orders")
              .headers(headers_10)
              .check(status.is(200))
              .body(RawFileBody("/Users/z063011/Sunil/test.json")).asJSON)
  </code></pre>