指定HTTP header setRequestHeader Method (IXMLHTTPRequest) Specifies the name of an HTTP header.[Script] Script Syntax oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue); Parameters bstrHeader A string. A 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 A string. The value of the header; for example, "infinity". Note You must call the open method before you call this method. Otherwise, an error will occur.
Specifies the name of an HTTP header.[Script]
Script Syntax
oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue);
Parameters
bstrHeader
A string. A 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
A string. The value of the header; for example, "infinity".
Note You must call the open method before you call this method. Otherwise, an error will occur.