responseText Property (IXMLHTTPRequest)

Represents the response entity body as a string.

strValue = oXMLHttpRequest.responseText;

HRESULT get_responseText(
  BSTR* pbstrBody
);

General Remarks

This property represents only one of several forms in which the HTTP response can be returned.

IXMLHTTP attempts to decode the response into a Unicode string. It assumes the default encoding is UTF-8, but 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, use the responseXML property for full XML encoding support.

The property is read-only, and applies to the following interface:

IXMLHTTPRequest

See Also

responseBody Property | responseStream Property | responseXML Property

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.