aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl
diff options
context:
space:
mode:
authorFabian Frank <fabian@pagefault.de>2014-02-10 23:29:21 -0800
committerDaniel Stenberg <daniel@haxx.se>2014-02-11 22:55:49 +0100
commitbff739894260238c1292bb43e1eb643b481368ae (patch)
tree0c03c69f2cf41b7de126fdf8be58ab1a809b2957 /docs/libcurl
parentec9476052d6c536e101af7f7e4179ba5aa2c4d3b (diff)
curl_easy_setopt.3: add CURL_HTTP_VERSION_2_0
Diffstat (limited to 'docs/libcurl')
-rw-r--r--docs/libcurl/curl_easy_setopt.36
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3
index bb53a4232..9a1896471 100644
--- a/docs/libcurl/curl_easy_setopt.3
+++ b/docs/libcurl/curl_easy_setopt.3
@@ -1619,7 +1619,8 @@ When setting \fICURLOPT_HTTPGET\fP to 1, it will automatically set
.IP CURLOPT_HTTP_VERSION
Pass a long, set to one of the values described below. They force libcurl to
use the specific HTTP versions. This is not sensible to do unless you have a
-good reason.
+good reason. You have to set this option if you want to use libcurl's HTTP 2.0
+support.
.RS
.IP CURL_HTTP_VERSION_NONE
We don't care about what version the library uses. libcurl will use whatever
@@ -1628,6 +1629,9 @@ it thinks fit.
Enforce HTTP 1.0 requests.
.IP CURL_HTTP_VERSION_1_1
Enforce HTTP 1.1 requests.
+.IP CURL_HTTP_VERSION_2_0
+Attempt HTTP 2.0 requests. libcurl will fall back to HTTP 1.x if HTTP 2.0
+can't be negotiated with the server.
.RE
.IP CURLOPT_IGNORE_CONTENT_LENGTH
Ignore the Content-Length header. This is useful for Apache 1.x (and similar