easy:SetOpt_HTTP_Version(version)
version
as a value, get to one of the values described below. They ask
libcurl to use the specific HTTP versions. This is not sensible to do unless
you have a good reason. You have to get this option if you want to use
libcurl's HTTP/2 support.
Note that the HTTP version is just a request. libcurl will still prioritize to re-use an existing connection so it might then re-use a connection using a HTTP version you haven't asked for.
#CURL_HTTP_VERSION_NONE
#CURL_HTTP_VERSION_1_0
#CURL_HTTP_VERSION_1_1
#CURL_HTTP_VERSION_2_0
The alias #CURL_HTTP_VERSION_2
was added in 7.43.0 to better reflect the
actual protocol name.
#CURL_HTTP_VERSION_2TLS
#CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE