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.
More on HTTP, TLS & Certificates
What is the structure of an HTTP request and response?BeginnerWhich HTTP status code classes and codes should every DevOps engineer know?BeginnerWhat changed between HTTP/1.1, HTTP/2 and HTTP/3?IntermediateHow does QUIC differ from TCP+TLS?AdvancedWhat are HTTP keep-alive and connection reuse, and why do they matter?AdvancedWhat is the difference between HTTP and HTTPS?Beginner