HttpSendRequestEx

This function sends the specified request to the HTTP server and allows chunked transfers.

At a Glance

Header file: Wininet.h
Windows CE versions: 2.12 and later

Syntax

BOOL HttpSendRequestEx (HINTERNET hRequest, LPINTERNET_BUFFERS lpBuffersIn,
LPINTERNET_BUFFERS lpBuffersOut, DWORD dwFlags,
DWORD dwContext);

Parameters

hRequest

[in] HINTERNET handle returned by HttpOpenRequest.

lpBuffersIn

[in] Optional. Address of an INTERNET_BUFFERS structure.

lpBuffersOut

[out] Optional. Address of an INTERNET_BUFFERS structure.

dwFlags

[in] Can be one of the following values:

Value Description
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

[in] Unsigned long integer variable that contains the application-defined context value, if a status callback function has been registered.

Return Values

Returns TRUE if successful, or FALSE otherwise.

See Also

HttpEndRequest, HttpOpenRequest, HttpSendRequest