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
Get the last received HTTP or FTP code.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Returns the requested value or nothing on error.
On success puts download in container, else shows failed:
Set Variable [$errorCode; Value:MBS("CURL.ErrorCode"; $curl)]
Set Variable [$httpResult; Value:MBS("CURL.GetResponseCode"; $curl)]
Set Field [Download Async::Result; $errorCode]
Set Field [Download Async::DebugMessages; MBS("CURL.GetDebugAsText"; $curl)]
If [$errorCode = 0 and $httpResult = 200]
Set Field [Download Async::Progress; "Done"]
Set Field [Download Async::Output; MBS("CURL.GetResultAsContainer"; $curl)]
Else
Set Field [Download Async::Progress; "Failed"]
Set Field [Download Async::Output; ""]
End If
Created 18th August 2014, last changed 12nd July 2015
CURL.GetRequestSize - CURL.GetResultAsContainer
Feedback: Report problem or ask question.