statusText Property (IXMLHTTPRequest)
Represents the HTTP response line status.
strValue = oXMLHttpRequest.statusText;
Example
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0"); xmlhttp.open("GET", "http://localhost/books.xml", false); xmlhttp.send(); WScript.Echo(xmlhttp.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.
String. The property is read-only. It represents the HTTP response as a BSTR value. This value is valid only after the send method returns successfully.
Implemented in:
MSXML 3.0, MSXML 6.0
send Method (IXMLHTTPRequest)
status Property (IXMLHTTPRequest)
Show: