Methods
The WinHttpRequest object defines the following methods.
Properties
The WinHttpRequest object defines the following properties.
| Property | Access type | Description |
Option | Read/write | Sets or retrieves a WinHTTP option value.
|
ResponseBody | Read-only | Retrieves the response entity body as an array of unsigned bytes.
|
ResponseStream | Read-only | Retrieves the response entity body as an
IStream.
|
ResponseText | Read-only | Retrieves the response entity body as text.
|
Status | Read-only | Retrieves the HTTP status code from the last response.
|
StatusText | Read-only | Retrieves HTTP status text.
|
Events
The WinHttpRequest object has the following events.
Remarks
The
WinHttpRequest object uses the
IErrorInfo interface to provide error data. A description and numerical error value can be obtained with the Err object in Microsoft Visual Basic Scripting Edition (VBScript), and the Error object in Microsoft JScript. The lower 16 bits of an error number correspond to the values found in
Error Messages.
Note For Windows XP and Windows 2000, see Run-Time Requirements.
Requirements
| Minimum supported client | Windows XP, Windows 2000 Professional with SP3 |
| Minimum supported server | Windows Server 2003, Windows 2000 Server with SP3 |
| 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
- WinHTTP Versions
Send comments about this topic to Microsoft
Build date: 10/8/2009