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…
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 query is in the request line; the body is behind the headers
query string URLs are written in server, CDN and proxy logs, kept in the browser’s history when opened as a page, and caught in screenshots. HTTPS does not help at those ends. Credentials and tokens always go in the body (POST) or a header, never in ?password=….GET fetch refuses it: TypeError: Request with GET/HEAD method cannot have body. Data for a GET goes in the query; data to send, use POST.414 URI Too Long). Long id lists or big JSON go in the body.GET with a body The browser refuses it with a TypeError; nothing rides.414 URI Too Long 1,500 ids in the query push the request line past the gudang’s limit.FormData body with no Content-Type The browser writes its label itself, boundary and all.