Microsoft XML 2.5 SDK


 

setRequestHeader Method

[This is preliminary documentation and subject to change.]

Specifies the name of an HTTP header.

Syntax

oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue)

Parameters

bstrHeader

String. Header name to set; for example, "depth". This parameter should not contain a colon and should be the actual text of the HTTP header.

bstrValue

String. Value of the header; for example, "infinity".

Remarks

If another header already exists with this name, it is replaced.

Applies To

XMLHttpRequest

See Also

getResponseHeader