RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTTPReqResp.Receive Method

Receives the contents of an HTTP response to the message sent by the Send message.

Pascal
procedure Receive(Context: Integer; Resp: TStream; IsGet: Boolean = False); virtual;
C++
virtual __fastcall Receive(int Context, TStream Resp, Boolean IsGet = False);

Note: On Windows (when using WinInet), Receive fetches the HTTP response to the message sent by the SendMessage method, and writes its contents to the specified stream.
Note: Receive is not available on Linux.
Context is the context ID that identifies the original request message that the Send message sent. It is the return value from a previous call to the Send method. 

Resp is a stream to which Receive can write the contents of the response message. 

IsGet indicates whether the response stream contains the results from a "Get" request message. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!