statusText Property (IXMLHTTPRequest)
Represents the HTTP response line status.
[Script]
Script Syntax
strValue = oXMLHttpRequest.statusText;
Example
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.5.0"); xmlhttp.open("GET", "http://localhost/sample.xml", false); xmlhttp.send(); alert(xmlhttp.statusText);
[Visual Basic]
Visual Basic Syntax
strValue = oXMLHttpRequest.statusText
Example
Dim xmlhttp As New Msxml2.XMLHTTP50 xmlhttp.open "GET", "http://localhost/sample.xml", False xmlhttp.send MsgBox xmlhttp.Status
[C/C++]
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
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.
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.
See Also
Applies to: IXMLHTTPRequest