Share via


responseText Property (IXMLHTTPRequest) (Compact 2013)

3/26/2014

Represents the response entity body as a string.

Syntax

strValue = oXMLHttpRequest.responseText;
HRESULT get_responseText(
  BSTR* pbstrBody
);

Parameters

Script

None.

C/C++

  • pbstrBody
    [out, retval] Response entity body as a string.

Return Value

Script

Variant. Response entity body as a string.

C/C++

  • S_OK
    Value returned if successful.
  • E_PENDING
    Value returned if the data is unavailable.

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

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML HTTP Properties
responseStream Property (IXMLHTTPRequest)
responseXML Property (IXMLHTTPRequest)