getResponseHeader Method (IXMLHTTPRequest)
Retrieves the value of an HTTP header from the response body.
strValue = oXMLHttpRequest.getResponseHeader(
bstrHeader
);
HRESULT getResponseHeader(
BSTR bstrHeader,
BSTR* pbstrValue
);
General Remarks
The results of this method are valid only after the send method has been successfully completed. The line, xmlhttp.getResponseHeader("Content-Type");
, returns the string text/xml
, assuming the server set text/xml
as the content type. The full list of header variables you can query can be accessed from the getAllResponseHeaders method.
This method applies to the following interface:
See Also
getAllResponseHeaders Method | send Method | setRequestHeader Method
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.