Pcornel
Web Infrastructure

HTTP

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

Back to the Topic

Answer

HTTP is the request/response protocol of the web. Its semantics — methods, status codes, header fields, caching, content negotiation — are the same in every version; HTTP/1.1, HTTP/2 and HTTP/3 only change how messages are carried on the wire.

Remember

Semantics (RFC 9110) are version-independent. 1xx informational, 2xx success, 3xx redirect, 4xx client problem, 5xx server or gateway problem. 502/504 almost always come from a proxy talking to its upstream. Every intermediary can rewrite headers.

First checks

  • curl -sSI https://<host>/ — status line, headers, redirects.
  • curl -sS -o /dev/null -w "%{http_code} %{http_version} %{remote_ip}\n" https://<host>/ — status, negotiated version, which IP answered.
  • curl -v https://<host>/ — request and response headers, TLS and ALPN.
  • Server access log for the same request (time, status, bytes, upstream time).

Verify in this order

client → DNS → TCP/QUIC + TLS → CDN/proxy → virtual host → application → response headers and status → back through each intermediary

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

Confirmation

Confirm action

Continue?