Click to return to the XML (Extensible Markup Language) home page    
IXMLHttpRequest::getAllRe...     IXMLHttpRequest::onreadys...     IXMLHttpRequest Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLHttpRequest::getResponseHeader Method


Retrieves the value of an HTTP header from the response body.

Visual Basic Syntax

strValue = oXMLHttpRequest.getResponseHeader(bstrHeader)

C/C++ Syntax

HRESULT getResponseHeader(
    BSTR bstrHeader,
    BSTR *pbstrValue);

Parameters

bstrHeader
[in] Case-insensitive header name.
pbstrValue
[out] Resulting header information.

C/C++ Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The results of this method are valid only after the send method has been successfully completed.

See Also

getAllResponseHeaders, setRequestHeader



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.