Pcornel
Web Infrastructure · HTTP

HTTP/3 and QUIC

Cheat sheet · https://pcornel.dk/topic.php?topic=6265

Back to the Topic

Answer

HTTP/3 carries HTTP over QUIC, a UDP-based transport with TLS 1.3 built in. Each request has its own QUIC stream, so packet loss on one does not stall the others.

Remember

UDP, usually 443 — firewalls and load balancers must allow and handle it. Discovery is opt-in (Alt-Svc / HTTPS RR); the first visit normally uses TCP. 0-RTT data can be replayed — only safe for idempotent requests.

First checks

  • curl -sSI https://<host>/ | grep -i alt-svc — server advertises h3.
  • curl --http3-only -sS -o /dev/null -w "%{http_version}\n" https://<host>/ — prints 3 (needs a curl built with HTTP/3).
  • dig +short HTTPS <host> — HTTPS record with alpn=h3.
  • ss -ulnp 'sport = :443' — something listens on UDP 443.

Commands

curl --http3-only

Verify in this order

discovery (Alt-Svc / HTTPS RR) → QUIC handshake on UDP with TLS 1.3 → streams with HEADERS/DATA frames (QPACK) → connection IDs allow migration

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6265

Confirmation

Confirm action

Continue?