Expand Minimize
1 out of 3 rated this helpful - Rate this topic

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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

HttpEndRequestW (Unicode) and HttpEndRequestA (ANSI)

See also

HTTP Sessions
WinINet Functions

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.