TTMSMCPCloudBase.Curl Method
Executes a cURL command string and delivers the full request result via the callback.
API unit family: TMS.MCP.CloudBase
Declaring type: TTMSMCPCloudBase
Inherited from: TTMSMCPCustomCloudBase
Overloads
Overload 1
Executes a cURL command string and delivers the full request result via the callback.
class procedure Curl(const ACurl: string; ACallback: TTMSMCPCloudBaseRequestResultEvent); overload;
Parameters
| Name | Description |
|---|---|
ACurl |
The cURL command line string to parse and execute. |
ACallback |
Callback invoked with the full request result object. |
Overload 2
Executes a cURL command string and delivers the response body as a string via the callback.
class procedure Curl(const ACurl: string; ACallback: TTMSMCPCloudBaseRequestResultStringEvent); overload;
Parameters
| Name | Description |
|---|---|
ACurl |
The cURL command line string to parse and execute. |
ACallback |
Callback invoked with the response body string. |
Overload 3
Executes a cURL command string and delivers the response body as a memory stream via the callback.
class procedure Curl(const ACurl: string; ACallback: TTMSMCPCloudBaseRequestResultStreamEvent); overload;
Parameters
| Name | Description |
|---|---|
ACurl |
The cURL command line string to parse and execute. |
ACallback |
Callback invoked with the response body stream. |