Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.42 KB

File metadata and controls

55 lines (36 loc) · 1.42 KB

Home

Function name : WinHttpReceiveResponse

Group: HTTP Functions (WinHTTP) - Library: winhttp


The WinHttpReceiveResponse function waits to receive the response to an HTTP request initiated by WinHttpSendRequest.


Code examples:

Custom HttpRequest class (WinHTTP)

Declaration:

void WinHttpReceiveResponse(
  HINTERNET hRequest,
  LPVOID lpReserved
);  

FoxPro declaration:

DECLARE INTEGER WinHttpReceiveResponse In winhttp;
	INTEGER hRequest,;
	INTEGER lpReserved
  

Parameters:

hRequest [in] HINTERNET handle returned by WinHttpOpenRequest and sent by WinHttpSendRequest. Wait until WinHttpSendRequest has completed for this handle before calling WinHttpReceiveResponse.

lpReserved [in] Must be set to NULL.


Return value:

Returns TRUE if successful, or FALSE otherwise.


Comments:

MSDN: When WinHttpReceiveResponse completes successfully, the status code and response headers have been received and are available for the application to inspect using WinHttpQueryHeaders.

An application must call WinHttpReceiveResponse before it can use WinHttpQueryDataAvailable and WinHttpReadData to access the response entity body (if any).