IWinHttpRequestEvents::OnResponseStart event
The OnResponseStart event occurs when the response data starts to be received.
Syntax
void OnResponseStart(
[in] long Status,
[in] BSTR ContentType
);
Parameters
-
Status [in]
-
Receives the standard status code returned with the response data. Status codes are defined in RFC 2616.
-
ContentType [in]
-
Specifies the type of content received, such as "text/html" or "image/gif".
Return value
This event does not return a value.
Remarks
For this event to occur, use Open to send an HTTP connection in asynchronous mode and use Send to send a data request to an Internet server.
This is the first WinHTTP event to occur after the Send.
Note
For Windows XP and Windows 2000, see the Run-Time Requirements section of the WinHTTP Start Page.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows XP, Windows 2000 Professional with SP3 [desktop apps only] |
Minimum supported server |
Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only] |
Redistributable |
WinHTTP 5.0 and Internet Explorer 5.01 or later on Windows XP and Windows 2000. |
IDL |
|