DOM
Expand Minimize

responseBody Property (IXMLHTTPRequest)

Represents only one of several forms in which the HTTP response can be returned.

strValue = oXMLHttpRequest.responseBody;

Example

var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
xmlhttp.open("GET", "http://localhost/books.xml", false);
xmlhttp.send();
WScript.Echo(xmlhttp.responseBody);


strValue = oXMLHttpRequest.responseBody

HRESULT get_responseBody(VARIANT* pvarBody);

Parameters

pvarBody[out, retval]

The response entity body as an array of unsigned bytes.

C/C++ Return Values

S_OK

The value returned if successful.

E_PENDING

The value returned if the data is unavailable.

Variant. The property is read-only. Represents the response entity body as an array of unsigned bytes, namely a SAFEARRAY of type VT_ARRAY | VT_UI1. This contains the raw undecoded bytes as received directly from the server. Therefore, depending on what the server sent, this may appear as binary-encoded data (UTF-8, UCS-2, UCS-4, Shift_JIS, and so on).

Implemented in:

MSXML 3.0, MSXML 6.0

Show:
© 2014 Microsoft