statusText Property (ServerXMLHTTP-IServerXMLHTTPRequest)

 

Represents the HTTP response line status.

strValue = oXMLHttpRequest.statusText;  

Example

var xmlServerHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.3.0");
xmlServerHttp.open("GET", "http://localhost/books.xml", false);
xmlServerHttp.send();
WScript.Echo(xmlServerHttp.statusText);

strValue = oXMLHttpRequest.statusText  

HRESULT get_statusText(BSTR* pbstrStatus);  

Parameters

pbstrStatus [out, retval]
The HTTP response as a "BSTR" value.

C/C++ Return Values

S_OK
The value returned if successful.

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

Implemented in:

MSXML 3.0, MSXML 6.0

IServerXMLHTTPRequest-ServerXMLHTTP

send Method (ServerXMLHTTP-IServerXMLHTTPRequest)
status Property (ServerXMLHTTP-IServerXMLHTTPRequest)

Show: