Share via


responseText Property (IXMLHTTPRequest) (Windows Embedded CE 6.0)

1/6/2010

Represents the response entity body as a string.

Script Syntax

strValue = oXMLHttpRequest.responseText;

Remarks

Ee503173.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee503173.collapse(en-US,WinEmbedded.60).gifScript Return Value

Variant. Response entity body as a string.

Ee503173.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_responseText(
  BSTR* pbstrBody
);

Remarks

Ee503173.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

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

Ee503173.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

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

Ee503173.collapse(en-US,WinEmbedded.60).gifRequirements

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

Reference

XML HTTP Properties

Concepts

responseStream Property (IXMLHTTPRequest)
responseXML Property (IXMLHTTPRequest)

Other Resources