Soap.SOAPHTTPTrans.THTTPReqResp.Receive
Delphi
procedure Receive(Context: HINTERNET; Resp: TStream; IsGet: Boolean = False); virtual;
C++
virtual void __fastcall Receive(void * Context, System::Classes::TStream* Resp, bool IsGet = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Soap.SOAPHTTPTrans.pas Soap.SOAPHTTPTrans.hpp |
Soap.SOAPHTTPTrans | THTTPReqResp |
Description
Receives the contents of an HTTP response to the message sent by the Send message.
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.