HttpSendRequestExW function (wininet.h)
Sends the specified request to the HTTP server.
Syntax
BOOL HttpSendRequestExW(
[in] HINTERNET hRequest,
[in] LPINTERNET_BUFFERSW lpBuffersIn,
[out] LPINTERNET_BUFFERSW lpBuffersOut,
[in] DWORD dwFlags,
[in] DWORD_PTR dwContext
);
Parameters
[in] hRequest
A handle returned by a call to the HttpOpenRequest function.
[in] lpBuffersIn
Optional. A pointer to an INTERNET_BUFFERS structure.
[out] lpBuffersOut
Reserved. Must be NULL.
[in] dwFlags
Reserved. Must be zero.
[in] dwContext
Application-defined context value, if a status callback function has been registered.
Return value
If the function succeeds, the function returns TRUE.
If the function fails, it returns FALSE. To get extended error information, call GetLastError.
Remarks
HttpSendRequestEx performs both the send and the receive for the response. This does not allow the application to send any extra data beyond the single buffer that was passed to HttpSendRequestEx. Callers that need to send extra data beyond what is normally passed to HttpSendRequestEx can do so by calling HttpSendRequest instead. After the call to HttpSendRequestEx, send the remaining data by calling InternetWriteFile. Finally, follow up with a call to HttpEndRequest.
Note
The wininet.h header defines HttpSendRequestEx as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wininet.h |
Library | Wininet.lib |
DLL | Wininet.dll |