getAllResponseHeaders Method (ServerXMLHTTP/IServerXMLHTTPRequest)

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

getAllResponseHeaders Method (ServerXMLHTTP/IServerXMLHTTPRequest)

Retrieves the values of all the HTTP headers.

[Script]

Script Syntax

strValue = oServerXMLHTTPRequest.getAllResponseHeaders();

Example

var xmlServerHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.5.0");
xmlServerHttp.open("GET", "http://localhost/sample.xml", false);
xmlServerHttp.send();
alert(xmlServerHttp.getAllResponseHeaders());
[Visual Basic]

Visual Basic Syntax

strValue = oServerXMLHTTPRequest.getAllResponseHeaders

Example

Dim xmlServerHttp As New Msxml2.ServerXMLHTTP50
xmlServerHttp.open "GET", "http://localhost/sample.xml", False
xmlServerHttp.send
MsgBox xmlServerHttp.getAllResponseHeaders()
[C/C++]

C/C++ Syntax

HRESULT getAllResponseHeaders(BSTR *pbstrHeaders);

Parameters

pbstrHeaders [out, retval]
The resulting header information.

C/C++ Return Values

S_OK
The value returned if successful.

Remarks

Each header name/value pair is separated by a combination carriage return–line feed character (vbCrLf in Microsoft® Visual Basic®).

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

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

send Method (ServerXMLHTTP/IServerXMLHTTPRequest) | getResponseHeader Method (ServerXMLHTTP/IServerXMLHTTPRequest) | setRequestHeader Method (ServerXMLHTTP/IServerXMLHTTPRequest)

Applies to: IServerXMLHTTPRequest/ServerXMLHTTP