mirror of
https://github.com/curl/curl.git
synced 2026-06-08 14:44:17 +03:00
CURLOPT_HTTP_VERSION.md add note to history
This commit is contained in:
parent
87d5b138aa
commit
f387fd59d7
1 changed files with 6 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ int main(void)
|
|||
if(curl) {
|
||||
CURLcode ret;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_2TLS);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
|
||||
ret = curl_easy_perform(curl);
|
||||
if(ret == CURLE_HTTP_RETURNED_ERROR) {
|
||||
/* an HTTP response error problem */
|
||||
|
|
@ -114,6 +114,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
CURL_HTTP_VERSION_\* enums became `long` types in 8.13.0, prior to this version
|
||||
a `long` cast is necessary when passing to curl_easy_setopt(3).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue