HttpEndRequestA function

Ends an HTTP request that was initiated by HttpSendRequestEx.

Syntax

BOOLAPI HttpEndRequestA(
  HINTERNET           hRequest,
  LPINTERNET_BUFFERSA lpBuffersOut,
  DWORD               dwFlags,
  DWORD_PTR           dwContext
);

Parameters

hRequest

Handle returned by HttpOpenRequest and sent by HttpSendRequestEx.

lpBuffersOut

This parameter is reserved and must be NULL.

dwFlags

This parameter is reserved and must be set to 0.

dwContext

This parameter is reserved and must be set to 0.

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

If lpBuffersOut is not set to NULL, HttpEndRequest will return ERROR_INVALID_PARAMETER.

Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
 

Requirements

   
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

See Also

HTTP Sessions

WinINet Functions