Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Ends an HTTP request that was initiated by HttpSendRequestEx.
Syntax
BOOL HttpEndRequest%( IN HINTERNET hRequest, OUT LPINTERNET_BUFFERS% lpBuffersOut, IN DWORD dwFlags, IN DWORD dwContext );The actual syntax of this function varies between its ANSI and Unicode implementations. See the Win32 Internet Functions Syntax document for details.
Parameters
- hRequest
- HINTERNET handle returned by HttpOpenRequest and sent by HttpSendRequestEx.
- lpBuffersOut
- Address of an INTERNET_BUFFERS structure.
- dwFlags
- Unsigned long integer value that contains the flags that control this function. Can be one of the following values:
HSR_ASYNC Identical to WININET_API_FLAG_ASYNC. HSR_SYNC Identical to WININET_API_FLAG_SYNC. HSR_USE_CONTEXT Identical to WININET_API_FLAG_USE_CONTEXT. HSR_INITIATE Iterative operation (completed by HttpEndRequest). HSR_DOWNLOAD Download resource to file. HSR_CHUNKED Send chunked data. - dwContext
- Unsigned long integer variable that contains the application-defined context value for applications that register a status callback function.
Return Value
Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.
Function Information
Windows NT Use version 4.0 and later. Implemented as ANSI and Unicode functions. Windows Use Windows 95 and later. Implemented as ANSI and Unicode functions. Header Wininet.h Import library Wininet.lib Minimum availability Internet Explorer 4.0 (ANSI only), 5 (ANSI and Unicode)
See Also
Microsoft Win32 Internet Functions Overview, HTTP Sessions, Microsoft Win32 Internet Functions Reference, HTTP Functions
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.