Export (0) Print
Expand All
Expand Minimize

HttpEndRequest function

Ends an HTTP request that was initiated by HttpSendRequestEx.

Syntax


BOOL HttpEndRequest(
  _In_       HINTERNET hRequest,
  _Out_opt_  LPINTERNET_BUFFERS lpBuffersOut,
  _In_       DWORD dwFlags,
  _In_opt_   DWORD_PTR dwContext
);

Parameters

hRequest [in]

Handle returned by HttpOpenRequest and sent by HttpSendRequestEx.

lpBuffersOut [out, optional]

This parameter is reserved and must be NULL.

dwFlags [in]

This parameter is reserved and must be set to 0.

dwContext [in, optional]

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

Minimum supported server

Windows 2000 Server

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

HttpEndRequestW (Unicode) and HttpEndRequestA (ANSI)

See also

HTTP Sessions
WinINet Functions

 

 

Show:
© 2014 Microsoft