getResponseHeader Method (IXMLHTTPRequest) (Windows Embedded CE 6.0)
1/6/2010
Retrieves the value of an HTTP header from the response body.
Script Syntax
strValue = oXMLHttpRequest.getResponseHeader(
bstrHeader
);
Remarks
Script Parameters
- bstrHeader
String containing the case-insensitive header name.
Script Return Value
String. Contains the resulting header information.
C/C++ Syntax
HRESULT getResponseHeader(
BSTR bstrHeader,
BSTR* pbstrValue
);
Remarks
Parameters
- bstrHeader
[in] Case-insensitive header name.
- pbstrValue
[out, retval] Resulting header information.
C/C++ Return Values
- S_OK
Value returned if successful.
- E_INVALIDARG
Value returned if either input argument is NULL.
- E_FAIL
Value returned if an error occurs.
- E_OUTOFMEMORY
Value returned if available memory is insufficient.
Requirements
Header | msxml2.h, msxml2.idl |
Library | uuid.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
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
Reference
Concepts
setRequestHeader Method (IXMLHTTPRequest)