Click to return to the Networking, Protocols     
HttpSendRequest Function     Cookie Functions     HTTP Functions    
Web Workshop  |  Networking, Protocols & Data Formats

HttpSendRequestEx Function


Sends the specified request to the HTTP server and allows chunked transfers.

Syntax

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

The actual syntax of this function varies between its ANSI and Unicode implementations. For more information, see Win32 Internet Functions Syntax.

Parameters

hRequest
HINTERNET handle returned by HttpOpenRequest.
lpBuffersIn
Optional. Address of an INTERNET_BUFFERS structure.
lpBuffersOut
Optional. Address of an INTERNET_BUFFERS structure.
dwFlags
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, if a status callback function has been registered.

Return Value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.

Function Information

Windows NT Use version 4.0. 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)

Windows CE

Windows CE Use version 2.12 and later. Implemented as ANSI and Unicode functions.
Minimum availability Internet Explorer 4.0

See Also

Microsoft Win32 Internet Functions Overview, HTTP Sessions, Microsoft Win32 Internet Functions Reference, HTTP Functions



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.