Contents Index Topic Contents | ||
Previous Topic: HttpAddRequestHeaders Next Topic: HttpOpenRequest |
HttpEndRequest
HttpEndRequest( IN HINTERNET hRequest, OUT LPINTERNET_BUFFERS lpBuffersOut, IN DWORD dwFlags, IN DWORD dwContext );Ends an HTTP request.
- Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.
- hRequest
- HINTERNET handle returned by HttpOpenRequest and sent by HttpSendRequestEx.
- lpBuffersOut
- Address of an INTERNET_BUFFERS structure.
- dwFlags
- 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
- Double-word variable that contains the context value to use in asynchronous operations.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.