2016-11-14 06:40:12 +08:00
|
|
|
Long: http2
|
|
|
|
Tags: Versions
|
|
|
|
Protocols: HTTP
|
|
|
|
Added: 7.33.0
|
|
|
|
Mutexed: http1.1 http1.0 http2-prior-knowledge
|
|
|
|
Requires: HTTP/2
|
|
|
|
See-also: no-alpn
|
2016-11-15 16:08:50 +08:00
|
|
|
Help: Use HTTP 2
|
2019-08-07 20:17:48 +08:00
|
|
|
See-also: http1.1 http3
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --http2 $URL
|
2016-11-14 06:40:12 +08:00
|
|
|
---
|
|
|
|
Tells curl to use HTTP version 2.
|
2021-08-31 22:37:14 +08:00
|
|
|
|
|
|
|
For HTTPS, this means curl will attempt to negotiate HTTP/2 in the TLS
|
|
|
|
handshake. curl does this by default.
|
|
|
|
|
|
|
|
For HTTP, this means curl will attempt to upgrade the request to HTTP/2 using
|
|
|
|
the Upgrade: request header.
|