A worked example, rendered from real sample data. Sign in to run the tool on your own input.
GET═══ GET ═══
Ask for a representation of a resource. The workhorse of the web and the only method a browser address bar can produce.
Safe: yes — a GET must not change server state that the client is responsible for
Idempotent: yes
Cacheable: yes, by default
Request body: no — RFC 9110 says a body has no defined semantics and many proxies, CDNs and servers drop it
Response body: yes
Success codes: 200 OK, 206 Partial Content (Range), 304 Not Modified (conditional)
Typical errors: 404 Not Found, 401/403, 410 Gone, 416 Range Not Satisfiable
Spec: RFC 9110 §9.3.1
─── When to use it ───
• Reading anything: a page, a record, a list, a file.
• The request is safe to repeat, prefetch, bookmark and share as a URL.
• You want caching and conditional requests (ETag / If-None-Match) for free.
─── Common mistakes ───
⚠ Using GET for something that mutates. A crawler, a link prefetcher or an email scanner will eventually fire it. "GET /posts/3/delete" is how sites lose data.
⚠ Putting secrets in the query string. URLs land in browser history, server logs, proxy logs and Referer headers.
⚠ Sending a request body. Fetch and XHR refuse it outright; curl silently converts your GET into a POST-like request.
═══ Example ═══
curl -i -X GET "https://api.example.com/v1/widgets/42" \
-H "Authorization: Bearer $TOKEN"
Quick reference for all HTTP methods with use cases and safety info. Part of the DevTools Surf developer suite. Browse more tools in the Networking collection.