Interview Prep/Networking/HTTP, TLS & Certificates

What are the common HTTP methods and which are idempotent?

BeginnerConceptHTTP, TLS & Certificates
Answer

GET, HEAD, OPTIONS are safe (read only). GET, HEAD, PUT, DELETE and OPTIONS are idempotent: repeating them has the same effect. POST and PATCH are not guaranteed idempotent.

It matters for retries: proxies and clients can safely retry idempotent requests after a connection failure; retrying POST can create duplicates unless you use an idempotency key.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates