title: What is the equivalent Javascript request header for this CURL script?
body: <p>I'm trying to communicate with this webservice using javascript how do I set the last requestheader using javascript?</p>
  
  <pre><code>curl -X POST \
        -H "X-Parse-Application-Id: 57865" \
        -H "X-Parse-REST-API-Key: 87468977" \
        -H "Content-Type: application/json" \
        -d '{}' \
      http://api.thisisatest.com/1/test
  </code></pre>
  
  <p>so far i have this below, but the "d" is incorrect and I'm not sure what that should be any help is appreciated.</p>
  
  <pre><code>xhr.setRequestHeader("X-Parse-Application-Id",  "57865");
  xhr.setRequestHeader("X-Parse-REST-API-Key", "87468977");
  xhr.setRequestHeader("Content-Type", "application/json");
  //xhr.setRequestHeader("d", "{}");
  </code></pre>