title: How to create javascript POST request to server with Headers and Data
body: <p>I use JS automation framework for testing iOS application. In the middle of a test I need to create POST request to server to some money to user and then verify that changes are reflected in UI. </p>
  
  <p>Request looks like: wwww.testserver.com/userAddMoney?user_id=1&amp;amount=999</p>
  
  <p>but to authorize on server I need to pass special parameters to Header of request:</p>
  
  <p><strong>Headers:</strong> X-Testing-Auth-Secret: kI7wGju76kjhJHGklk76</p>
  
  <p>Thanks in advance!</p>