Group: HTTP Functions (WinHTTP) - Library: winhttp
The WinHttpReceiveResponse function waits to receive the response to an HTTP request initiated by WinHttpSendRequest.
Custom HttpRequest class (WinHTTP)
void WinHttpReceiveResponse(
HINTERNET hRequest,
LPVOID lpReserved
); DECLARE INTEGER WinHttpReceiveResponse In winhttp;
INTEGER hRequest,;
INTEGER lpReserved
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.
Returns TRUE if successful, or FALSE otherwise.
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).
Home