3 ms·
> GET requests ... can't have a request body. It's not specifically banned, but it is defined as being completely meaningless This is widely believed but false
by BugsJustFindMe 3y ago
> GET requests ... can't have a request body. It's not specifically banned, but it is defined as being completely meaningless
This is widely believed but false. And repeating it leads me to believe that the author is not careful enough to create new standards. They are just not defined to be meaningful, which is not the same thing.
In fact the standard says that sending a message body with a GET request should not (specifically SHOULD NOT, not MAY NOT) be done unless you have confirmed that the servers accept it, because servers are not required to accept it, but that if you are talking to a server directly that you know supports it then it's perfectly fine and within the standard.
- poisonborz 3y agoAs other commenters pointed out, support is spotty and it's generally a greyzone. A new verb (I'd also support "QUERY") would clarify things.
- akvadrako 3y agoBut it doesn't actually work in many browsers.