Click to return to the XML (Extensible Markup Language) home page    
IXMLHttpRequest::send Met...     IXMLHttpRequest::status P...     IXMLHttpRequest Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLHttpRequest::setRequestHeader Method


Specifies the name of an HTTP header.

Visual Basic Syntax

oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue)

C/C++ Syntax

HRESULT setRequestHeader(
    BSTR bstrHeader,
    BSTR bstrValue);

Parameters

bstrHeader
[in] 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
[in] Value of the header; for example, "infinity".

C/C++ Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

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

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.