Query String vs Request Body Playground

Put the same data in the query or the body, then follow where it goes: a password in the URL, a GET carrying a body, 1,500 ids at once, and the same search…

Why it matters

Every request decides: does this data go in the URL or in the body? Get it wrong and a password is written in the server’s and the CDN’s logs; a long list makes a 414; a body on a GET is refused by the browser. But a search in the URL can be cached and shared. Knowing the difference is the base of API design and of reading the Network tab.

The key idea

The query is in the request line; the body is behind the headers

Common mistakes

Try it in this playground