1 Long: http2 2 Tags: Versions 3 Protocols: HTTP 4 Added: 7.33.0 5 Mutexed: http1.1 http1.0 http2-prior-knowledge 6 Requires: HTTP/2 7 See-also: no-alpn 8 Help: Use HTTP 2 9 See-also: http1.1 http3 10 Category: http 11 Example: --http2 $URL 12 --- 13 Tells curl to use HTTP version 2. 14 15 For HTTPS, this means curl will attempt to negotiate HTTP/2 in the TLS 16 handshake. curl does this by default. 17 18 For HTTP, this means curl will attempt to upgrade the request to HTTP/2 using 19 the Upgrade: request header. 20