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.
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?
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.