Represents the response entity body as a string. The XMLHTTP object tries to decode the response into a Unicode string. It assumes the default encoding is UTF-8, but it can decode any type of UCS-2 (big or little endian) or UTC-4 encoding as long as the server sends the appropriate Unicode byte-order mark. It does not process the "<?" XML coding declaration. If you know the response is going to be XML, you should use the responseXML property for full XML encoding support.
Visual Basic Syntax
strValue = oXMLHttpRequest.responseText
C/C++ Syntax
HRESULT get_responseText(
VARIANT *pvarVal);
Parameters
pvarVal
[out]
Response entity body as a string.
C/C++ Return Value
Returns S_OK if successful, or E_PENDING if the data is unavailable.
Remarks
This property represents only one of several forms in which the HTTP response can be returned.
See Also