req.xhr. A Boolean property that is true if the requests X-Requested-With header field isChecks if the specified content types are acceptable, based on the requests Accept HTTP header field. On Tue, 13 Oct 2009 19:48:09 0200, Peter Michaux wrote: It seems as though the new version is not posted. Is there somewhere I can see the changed text? Advertising. xhr.setRequestHeader() merging my headers. I want to add header to my xhr .The only simple headers you can set are: Accept, Accept-Language, Content-Language, Last-Event-ID, and Create a XHR object: var xhr new XMLHttpRequest() Now initialize the request using the open method.Example. Accept. Content-Types that are acceptable for the response. I occasionally get confused between the Accept and the Content-Type Headers and this post is a way of clarifying the difference for myself. header to jQuery ajax requests > > j.