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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Returns headers parsed as JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Returns JSON or error.
Query headers as JSON:
MBS( "CURL.GetHeaderAsJSON"; $curl )
Example result:
{
"HTTP-Version": "1.1",
"HTTP-ResponseCode": "200",
"HTTP-ResponseMessage": "OK",
"Date": "Sat, 25 Apr 2020 10:37:35 GMT",
"Server": "Apache/2.4.41",
"Upgrade": "h2c",
"Connection": "Upgrade",
"Last-Modified": "Thu, 28 Feb 2013 16:43:55 GMT",
"ETag": "\"726-4d6cb98aca8c0\"",
"Accept-Ranges": "bytes",
"Content-Length": "1830",
"Content-Type": "text/plain",
"Content-Language": "en"
}
This function checks for a license.
Created 25th April 2020, last changed 25th April 2020