Compartir a través de


responseText Property (IXMLHTTPRequest)

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Represents the response entity body as a string.

Script Syntax

strValue = oXMLHttpRequest.responseText;

Remarks

Script Parameters

None.

Script Return Value

Variant. Response entity body as a string.

C/C++ Syntax

HRESULT get_responseText(
  BSTR* pbstrBody
);

Remarks

C/C++ Parameters

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

C/C++ Return Values

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

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

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

Concepts

responseStream Property (IXMLHTTPRequest)
responseXML Property (IXMLHTTPRequest)

Other Resources