Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.GetHeaderAsJSON
Returns headers parsed as JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 10.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.GetHeaderAsJSON"; curl ) More
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Result
Returns JSON or error.
Description
Returns headers parsed as JSON.This is for HTTP headers or headers in similar format.
We add to the JSON some special entries for the HTTP result line: HTTP-Version, HTTP-ResponseCode, and HTTP-ResponseMessage.
Examples
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"
}
See also
Release notes
- Version 13.4
- Fixed CURL.GetHeaderAsJSON function to make array for duplicate headers and filter duplicates.
- Version 12.0
- Fixed a problem in CURL.GetHeaderAsJSON introduced in v11.5.
- Version 10.2
- Added CURL.GetHeaderAsJSON function.
Blog Entries
- MBS FileMaker Plugin, version 11.6pr1
- Translating Insert from URL options for CURL to MBS Plugin calls
- Embrace JSON
- News about the MBS FileMaker Plugin 10.2
- Neues MBS FileMaker Plugin 10.2
- MBS FileMaker Plugin 10.2 - More than 6200 Functions In One Plugin
- MBS FileMaker Plugin, version 10.2pr5
This function checks for a license.
Created 25th April 2020, last changed 25th April 2020