mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
e7219c2bdc
Use imperative mood consistently for the first sentence describing an option. "Set this" instead "tell curl to set" or "this sets..." Plus some extra cleanups and rephrasing. Closes #13106
753 B
753 B
c | SPDX-License-Identifier | Long | Tags | Protocols | Added | Mutexed | Requires | Help | Category | Multi | See-also | Example | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | curl | http2 | Versions | HTTP | 7.33.0 | http1.1 http1.0 http2-prior-knowledge http3 | HTTP/2 | Use HTTP/2 | http | mutex |
|
|
--http2
Use HTTP/2.
For HTTPS, this means curl negotiates HTTP/2 in the TLS handshake. curl does this by default.
For HTTP, this means curl attempts to upgrade the request to HTTP/2 using the Upgrade: request header.
When curl uses HTTP/2 over HTTPS, it does not itself insist on TLS 1.2 or higher even though that is required by the specification. A user can add this version requirement with --tlsv1.2.