News for hackers. Stuff that matters.
Re:The State of HTTP in 2022 by bruce511 on Sunday January 01, 2023 @12:46AM (#34203966)
Interestingly though GET with data exists in the wild, and has for many years.

I manage a http library class, and a customer encountered an API that required a GET but with data. (think query parameters passed as XML).

I implemented that for the customer, and then implemented the reverse in the server class. I'm not going to say its used a lot, but it makes semantic sense.

Incidentally it also becomes true for DELETE which is another request typically without a body.

This is the first I've heard of QUERY though, so look forward to reading up on that.

Re:The State of HTTP in 2022 by sakisv on Sunday January 01, 2023 @02:10AM (#34204308)
Just a heads-up that cloudfront will return a 403 when it receives a GET with body.

It's documented and all but I still find it a peculiar choice. A 400 would have been better and less of a red herring.

Re:The State of HTTP in 2022 by jshier on Sunday January 01, 2023 @02:44AM (#34204462)
It also produces an error on all Apple platforms, as it's banned by URLSession.
Re:The State of HTTP in 2022 by ignoramous on Sunday January 01, 2023 @03:38AM (#34204716)
Don't DoH (DNS over HTTPS) GET requests return answers in body? I guess that's an exception?