1 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 2 SPDX-License-Identifier: curl 3 Long: http2 4 Tags: Versions 5 Protocols: HTTP 6 Added: 7.33.0 7 Mutexed: http1.1 http1.0 http2-prior-knowledge http3 8 Requires: HTTP/2 9 Help: Use HTTP/2 10 See-also: http1.1 http3 no-alpn 11 Category: http 12 Example: --http2 $URL 13 Multi: mutex 14 --- 15 Tells curl to use HTTP version 2. 16 17 For HTTPS, this means curl negotiates HTTP/2 in the TLS handshake. curl does 18 this by default. 19 20 For HTTP, this means curl attempts to upgrade the request to HTTP/2 using the 21 Upgrade: request header. 22 23 When curl uses HTTP/2 over HTTPS, it does not itself insist on TLS 1.2 or 24 higher even though that is required by the specification. A user can add this 25 version requirement with --tlsv1.2. 26