Share via


statusText Property (ServerXMLHTTP-IServerXMLHTTPRequest)

 

Represents the HTTP response line status.

Script Syntax

strValue = oXMLHttpRequest.statusText;  

Example

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

Visual Basic Syntax

strValue = oXMLHttpRequest.statusText  

C/C++ Syntax

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.

Remarks

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

Versioning

Implemented in:

MSXML 3.0, MSXML 6.0

Applies to

IServerXMLHTTPRequest-ServerXMLHTTP

See Also

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