Compartilhar via


getAllResponseHeaders Method (IXMLHTTPRequest) (Compact 2013)

3/26/2014

Retrieves the values of all the HTTP headers.

Syntax

strValue = oXMLHttpRequest.getAllResponseHeaders();
HRESULT getAllResponseHeaders(  BSTR* pbstrHeaders);

Parameters

Script

None.

C/C++

  • pbstrHeaders
    [out, retval] Resulting header information.

Return Value

Script

String. Contains the resulting header information.

C/C++

  • S_OK
    Value returned if successful.
  • E_INVALIDARG
    Value returned if the input argument is NULL.
  • E_FAIL
    Value returned if an error occurs.
  • E_OUTOFMEMORY
    Value returned if available memory is insufficient.

Remarks

Each header name/value pair is separated by a combination carriage return/line feed character.

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

This method applies to the following interface:

IXMLHTTPRequest

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML HTTP Methods
setRequestHeader Method (IXMLHTTPRequest)

Other Resources

send