Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Perform a curl transfer asynchronously.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Returns OK or error.
Start a few transfers:
Go to Record/Request/Page [First]
Loop
Set Variable [$curl; Value:MBS("CURL.New")]
Set Variable [$r; Value:MBS("CURL.SetFinishedScript"; $curl; Get(FileName); "DownloadFinished")]
Set Variable [$r; Value:MBS("CURL.SetProgressScript"; $curl; Get(FileName); "ProgressScript")]
Set Variable [$r; Value:MBS("CURL.SetOptionURL"; $curl; Download Async::URL)]
Set Variable [$r; Value:MBS("CURL.SetTag"; $curl; Get(RecordID))]
Set Field [Download Async::Progress; 0]
Set Field [Download Async::CURL Handle; $curl]
Set Variable [$r; Value:MBS("CURL.PerformAsync"; $curl)]
If [MBS("IsError")]
Show Custom Dialog ["CURL Error"; $r]
End If
Commit Records/Requests [Skip data entry validation; No dialog]
Go to Record/Request/Page [Next; Exit after last]
End Loop
Created 12nd July 2015, last changed 26th December 2018
CURL.Perform - CURL.PerformInBackground
Feedback: Report problem or ask question.