Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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