lightmy.day

Safe and idempotent

GET HTTP Method

GET requests retrieve a resource without changing it.

Meaning

The client asks for the current representation of the target resource.

Common uses

Use GET for pages, files, API reads, and other requests that should only retrieve data.

What to check

Check query parameters, cache headers, conditional request headers, and whether the URL points to the intended resource.

Example request

GET /articles/123 HTTP/1.1
Host: example.com

Properties

Safe
Yes. A safe method is intended only to read data.
Idempotent
Yes. Repeating the same request should have the same intended effect.
Cacheable
Yes
Request body
Possible, but unusual and often unsupported.

References

Related HTTP methods

Related HTTP status codes