A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/xhr/XMLHttpRequest/setRequestHeader below:

setRequestHeader ยท WebPlatform Docs

setRequestHeader Summary

Sets the value of an XMLHttpRequest header.

Method of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest

Syntax
 object.setRequestHeader(header, value);
Parameters header
Data-type
String

Specifies the header name.

value
Data-type
String

Specifies the header value.

Return Value

No 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 specifications
W3C XMLHttpRequest Specification
W3C Working Draft
Attributions

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