Click to return to the XML (Extensible Markup Language) home page    
XMLHttpRequest send Metho...     XMLHttpRequest status Pro...     XMLHttpRequest Object    
Web Workshop  |  XML (Extensible Markup Language)

setRequestHeader Method


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLHttpRequest

See Also

getResponseHeader



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.