Sets the value of an XMLHttpRequest header.
Method of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest
Syntax object.setRequestHeader(header, value);
Parameters header
Specifies the header name.
valueSpecifies the header value.
Return ValueNo return value
Usage If used, must be called after open(), but before send().
Notes
Refer to RFC2616, Section 14: Header Field Definitions for a general list of standard headers. The server is ultimately responsible for honoring the headers of the request. By far the most common request header is Content-Type, which is required by some XML Web services.
Related specificationsMicrosoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4