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  

CURL.GetOptionHTTPHeader

Queries HTTP request headers.

Component Version macOS Windows Linux Server iOS SDK
CURL 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.GetOptionHTTPHeader"; curl )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl

Result

Returns list or error.

Description

Queries HTTP request headers.

Examples

Set and get headers:

Set Variable [ $curl ; Value: MBS("CURL.New") ]
Set Variable [ $r ; Value: MBS( "CURL.SetOptionHTTPHeader"; $curl; "Content-Type: application/json¶Test: hello"; "Other: 1234" ) ]
Show Custom Dialog [ "Headers" ; MBS( "CURL.GetOptionHTTPHeader"; $curl) ]

See also

Created 16th April 2018, last changed 17th April 2018


CURL.GetOptionHTTP200Aliases - CURL.GetOptionMailRecipients

💬 Ask a question or report a problem