logoalt Hacker News

piterrrotoday at 1:09 PM2 repliesview on HN

> GET request with a body was heavily considered by the IETF working group, but it was ultimately rejected in favor of creating the new QUERY method. The decision to create a distinct method came down to historical interoperability issues and strict compliance with the core architectural definitions of HTTP.

I've been sending request body along GET method for years now


Replies

huskyrtoday at 1:23 PM

Apparently some load balancers drop the body.

show 1 reply
preisschildtoday at 2:20 PM

> I've been sending request body along GET method for years now

Generally not a great idea. With some http implementations this is not even possible (for example, fetch)

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/U...

> You cannot include a body with GET requests

And transparent caching might result in weird issues.