curl/docs
Stefan Eissing 962097b8dd
TLS: TLSv1.3 earlydata support for curl
Based on #14135, implement TLSv1.3 earlydata support for the curl
command line, libcurl and its implementation in GnuTLS.

If a known TLS session announces early data support, and the feature is
enabled *and* it is not a "connect-only" transfer, delay the TLS
handshake until the first request is being sent.

- Add --tls-earldata as new boolean command line option for curl.
- Add CURLSSLOPT_EARLYDATA to libcurl to enable use of the feature.
- Add CURLINFO_EARLYDATA_SENT_T to libcurl, reporting the amount of
  bytes sent and accepted/rejected by the server.

Implementation details:
- store the ALPN protocol selected at the SSL session.
- When reusing the session and enabling earlydata, use exactly
  that ALPN protocol for negoptiation with the server. When the
  sessions ALPN does not match the connections ALPN, earlydata
  will not be enabled.
- Check that the server selected the correct ALPN protocol for
  an earlydata connect. If the server does not confirm or reports
  something different, the connect fails.
- HTTP/2: delay sending the initial SETTINGS frames during connect,
  if not connect-only.

Verification:
- add test_02_32 to verify earlydata GET with nghttpx.
- add test_07_70 to verify earlydata PUT with nghttpx.
- add support in 'hx-download', 'hx-upload' clients for the feature

Assisted-by: ad-chaos on github
Closes #15211
2024-10-11 12:28:22 +02:00
..
cmdline-opts TLS: TLSv1.3 earlydata support for curl 2024-10-11 12:28:22 +02:00
examples build: tidy up deprecation suppression, enable warnings for clang 2024-09-21 00:59:52 +02:00
internals bufq: unwrite fix 2024-10-03 13:27:36 +02:00
libcurl TLS: TLSv1.3 earlydata support for curl 2024-10-11 12:28:22 +02:00
.gitignore
BINDINGS.md
BUG-BOUNTY.md
BUGS.md
CIPHERS-TLS12.md
CIPHERS.md
CMakeLists.txt
CODE_OF_CONDUCT.md
CODE_REVIEW.md
CONTRIBUTE.md
curl-config.md
CURL-DISABLE.md WebSockets: make support official (non-experimental) 2024-09-27 13:20:25 +02:00
CURLDOWN.md
DEPRECATE.md DEPRECATE: remove hyper in January 2025 2024-10-03 10:51:27 +02:00
DISTROS.md
EARLY-RELEASE.md
ECH.md ech: spelling, whitespace, say --ech default config 2024-10-07 12:31:21 +02:00
EXPERIMENTAL.md WebSockets: make support official (non-experimental) 2024-09-27 13:20:25 +02:00
FAQ
FEATURES.md
GOVERNANCE.md
HELP-US.md
HISTORY.md
HTTP3.md
HTTP-COOKIES.md
INSTALL
INSTALL-CMAKE.md INSTALL-CMAKE.md: mention focus on shared libraries 2024-10-07 08:22:15 +02:00
INSTALL.md INSTALL.md: fix a typo that slipped in to RISC OS 2024-10-08 09:57:05 -07:00
INTERNALS.md
IPFS.md
KNOWN_BUGS
MAIL-ETIQUETTE.md
Makefile.am
MANUAL.md
mk-ca-bundle.md
options-in-versions TLS: TLSv1.3 earlydata support for curl 2024-10-11 12:28:22 +02:00
README.md
RELEASE-PROCEDURE.md
ROADMAP.md
RUSTLS.md vtls/rustls: support strong CSRNG data 2024-09-13 14:11:56 +02:00
SECURITY-ADVISORY.md
SPONSORS.md
SSL-PROBLEMS.md
SSLCERTS.md curl: add options for safe/no CA bundle search (Windows) 2024-09-22 18:17:25 +02:00
THANKS THANKS: cleanup duplicates 2024-09-25 09:54:09 +02:00
THANKS-filter THANKS: cleanup duplicates 2024-09-25 09:54:09 +02:00
TheArtOfHttpScripting.md
TODO codespell: extend checks to more subdirs 2024-09-27 10:27:08 +02:00
URL-SYNTAX.md
VERSIONS.md
VULN-DISCLOSURE-POLICY.md

curl logo

Documentation

You find a mix of various documentation in this directory and subdirectories, using several different formats. Some of them are not ideal for reading directly in your browser.

If you would rather see the rendered version of the documentation, check out the curl website's documentation section for general curl stuff or the libcurl section for libcurl related documentation.