Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CURL.SetOptionHTTPVersion

Sets which HTTP version is used.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionHTTPVersion"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value Sets the HTTP Version. 2

Result

Returns "OK" on success.

Description

Sets which HTTP version is used.
This is not sensible to do unless you have a good reason.

CURL_HTTP_VERSION_NONE0We don't care about what version the library uses. libcurl will use whatever it thinks fit.
CURL_HTTP_VERSION_1_01Enforce HTTP 1.0 requests.
CURL_HTTP_VERSION_1_12Enforce HTTP 1.1 requests.
CURL_HTTP_VERSION_2_03please use HTTP 2 in the request
CURL_HTTP_VERSION_2TLS4use version 2 for HTTPS, version 1.1 for HTTP
CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE5please use HTTP 2 without HTTP/1.1 Upgrade

See also


CURL.SetOptionHTTPTransferDecoding   -   CURL.SetOptionHeader

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins