Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the response entity body as a string.
[Script]
Script Syntax
strValue = oXMLHttpRequest.responseText;
Script Parameters
None.
Script Return Value
Variant. Response entity body as a string.
[C/C++]
C/C++ Syntax
HRESULT get_responseText(BSTR* pbstrBody);
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
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
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:
See Also
responseBody Property | responseStream Property | responseXML Property
Send Feedback on this topic to the authors