Redigera

Dela via


IWinHttpRequest::ResponseBody property

The ResponseBody property retrieves the response entity body as an array of unsigned bytes.

This property is read-only.

Syntax

HRESULT get_ResponseBody(
  [out, retval] VARIANT *Body
);

vtResponseBody = WinHttpRequest.ResponseBody

Property value

A Variant value that receives the response entity body as an array of unsigned bytes. This array contains the raw data as received directly from the server.

Error codes

The return value is S_OK on success or an error value otherwise.

Remarks

This property returns the response data in an array of unsigned bytes. If the response does not have a response body, an empty variant is returned. This property can only be invoked after the Send method has been called.

Note

For more information about implementation for Windows XP and Windows 2000, see Run-Time Requirements.

Requirements

Requirement Value
Minimum supported client
Windows XP, Windows 2000 Professional with SP3 [desktop apps only]
Minimum supported server
Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]
Redistributable
WinHTTP 5.0 and Internet Explorer 5.01 or later on Windows XP and Windows 2000.
IDL
HttpRequest.idl
Library
Winhttp.lib
DLL
Winhttp.dll

See also

IWinHttpRequest

WinHttpRequest

ResponseStream

ResponseText

WinHTTP Versions