Can a GET request have a body?
The specification gives a GET body no meaning, many servers and proxies drop it, and fetch refuses to send one. Use query parameters, or POST, or the draft QUERY method.
Compare every standard HTTP method on the properties that decide how clients, caches, and proxies treat it: safe, idempotent, cacheable, whether it carries a body, whether it triggers a CORS preflight, and the status codes it usually returns.
Loading the workbench.
You do not have to take our word that your headers stay here. Developer tools show every request a page makes, so you can watch this page work and confirm that nothing is sent. The check takes under a minute.
F12, or Cmd+Option+I on a Mac, and select the Network tab.Only two things can add a line to that log, and neither carries your headers. Submitting the feedback form sends the vote and comment you typed. Typing characters in a script the page has not displayed yet, such as Cyrillic or Greek, can make the browser fetch the matching font file, and that request names only the font.
2http never sends a request on your behalf: the request builder writes code for you to run, and the meta inspector reads source you paste instead of fetching a URL. The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint.
A safe method is read-only from the client's point of view: GET, HEAD, OPTIONS, and TRACE should never change anything, so crawlers and prefetchers may call them freely. An idempotent method has the same effect whether it is sent once or ten times: every safe method, plus PUT and DELETE. That is what lets a client or proxy retry it after a dropped connection.
POST and PATCH are neither, by default, so a retry may create a second order or apply a change twice. APIs often add an idempotency key header to make POST retries safe.
Each card lists the properties, whether a request body is expected, whether the method is CORS-simple, and typical response codes such as 201, 204, and 405.
Only GET, HEAD, and POST can be simple cross-origin requests. PUT, PATCH, DELETE, and every other method always need an OPTIONS preflight, and the server must list them in Access-Control-Allow-Methods. The CORS checker shows the whole exchange for a real request.
Elsewhere in 2http: Header decoder, Cookie decoder, Cache-Control decoder, CORS checker, User-agent parser, and all eleven lanes on the 2http home page. Part of the 2suite.io privacy-first ecosystem.
The specification gives a GET body no meaning, many servers and proxies drop it, and fetch refuses to send one. Use query parameters, or POST, or the draft QUERY method.
Yes. Idempotence is about the effect on the server, not the response. After one or many DELETE calls the resource is gone, even though later calls may return 404.
HEAD returns the same headers as GET without the body. It is used to check whether a resource exists, its size, or whether it changed, without downloading it.
405 Method Not Allowed means the URL exists but does not support that method. The response must include an Allow header listing the methods it does support.