title: Rest-assured custom header
body: <p>In the photo below, I'm sending a custom header and get a response, and it works just fine with Postman. </p>
  
  <p><img src="https://i.stack.imgur.com/h0nKB.png" alt="Photo from Postman test">
  However, when I'm trying to test with <code>rest-assured</code>, I get <code>401 Unauthorized</code> status code.</p>
  
  <pre><code>authToken = getAuthTokenForUsnAndPwd("usn", "pwd");
  
  expect().statusCode(200).given()
      .header("auth_token", authToken)
      .when().get(restResource + "private/entries");
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>And how to make test for POST method with JSON object? </p>
  
  <pre><code>JSONObject e = new JSONObject();
  e.put("info", "info");
  
  expect().statusCode(200).given()
       .contentType("application/json").body(e.toString())
       .header("auth_token", authToken)
       .when().post(restResource + "private/entries");
  </code></pre>