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

CURL.SetOptionDefaultProtocol

Set the protocol used when curl is given a URL without a protocol.

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

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The option value.

Result

Returns OK or error.

Description

Set the protocol used when curl is given a URL without a protocol.

See also DEFAULT_PROTOCOL option in CURL manual.

See also

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


CURL.SetOptionDOHURL - CURL.SetOptionDirListOnly