Skip to content

Commit b5f0310

Browse files
committed
language
1 parent 30d6ccc commit b5f0310

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

usingcurl/tls/session.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Example:
4141
curl --ssl-sessions tls-cache.txt https://example.com
4242

4343
The main benefit of --ssl-sessions is a reduction in Time To First Byte
44-
(TTFB). In a resumed session, the server does not need to re-send its entire
44+
(*TTFB*). In a resumed session, the server does not need to re-send its entire
4545
certificate chain, which can often be several kilobytes of data. Furthermore,
4646
session resumption often requires fewer round-trips than a full handshake.
4747
When combined with --tls-earlydata (0-RTT), curl can even send the HTTP
4848
request in the first packet of the connection.
4949

5050
## Early data
5151

52-
The `--tls-earlydata` option, is the switch that enables **TLS 1.3 0-RTT (Zero
52+
The --tls-earlydata option, is the switch that enables **TLS 1.3 0-RTT (Zero
5353
Round Trip Time)**. In a standard TLS handshake, even with version 1.3, there
5454
is a back-and-forth exchange before the client can send its actual request
5555
(like an HTTP GET). 0-RTT allows a client that has connected to a server
@@ -77,16 +77,16 @@ is a standard security fallback), `curl` will automatically retry the request
7777
using a normal handshake, so there is no risk of the connection failing
7878
entirely because you used the flag.
7979

80-
## Security and Idempotency
80+
## Security and idempotency
8181

8282
Because 0-RTT data is sent before the full handshake is finalized, it is
8383
technically vulnerable to **replay attacks**. An attacker could capture the
8484
early data packet and resend it to the server. For this reason, `curl` (and
8585
most responsible clients) should only use early data for **idempotent**
8686
requests—those that do not change state on the server, like `GET` or `HEAD`.
87-
You should avoid using `--tls-earlydata` with `POST` or `DELETE` requests
88-
unless you are absolutely certain the server has specific protections (like
89-
unique tokens or strict replay windows) in place.
87+
You should avoid using --tls-earlydata with `POST` or `DELETE` requests unless
88+
you are absolutely certain the server has specific protections (like unique
89+
tokens or strict replay windows) in place.
9090

9191
## Session tracking
9292

@@ -111,7 +111,7 @@ disable 0-RTT entirely when high levels of anonymity are required.
111111

112112
## Requirements
113113

114-
To see the benefits of `--tls-earlydata`, several stars must align:
114+
To see the benefits of --tls-earlydata, several stars must align:
115115

116116
* **TLS 1.3**: The server and client must both support and negotiate TLS 1.3.
117117

wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ HTTPHEADER
231231
HTTPS
232232
https
233233
Huawei
234+
idempotency
234235
IDN
235236
IETF
236237
ifdef
@@ -447,6 +448,7 @@ RTMPS
447448
RTP
448449
RTSP
449450
rtsp
451+
RTT
450452
runpath
451453
runtests
452454
runtime

0 commit comments

Comments
 (0)