Table of Contents

TTMSFNCCloudBase.Curl Method

Executes a cURL command string and delivers the full request result via the callback.

API unit family: TMSFNCCloudBase Declaring type: TTMSFNCCloudBase Inherited from: TTMSFNCCustomCloudBase

Overloads

Overload 1

Executes a cURL command string and delivers the full request result via the callback.

class procedure Curl(const ACurl: string; ACallback: TTMSFNCCloudBaseRequestResultEvent); 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: TTMSFNCCloudBaseRequestResultStringEvent); 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: TTMSFNCCloudBaseRequestResultStreamEvent); overload;

Parameters

Name Description
ACurl The cURL command line string to parse and execute.
ACallback Callback invoked with the response body stream.