Re:The State of HTTP in 2022
by jillesvangurp on Sunday January 01, 2023 @07:18AM
(#34205735)
It still does. I don't think it violates the HTTP 1.1 specification but more that it is unspecified. It's just that a lot of http clients simply don't support doing HTTP GET with a body under the assumption that it is redundant / not needed / forbidden. Of course elasticsearch allows POST as an alternative.
People used to obsess a lot more about those HTTP verbs and their meaning a lot more than today. At least I don't seem to get dragged into debates on the virtues of PUT vs. POST, or using PATCH for a simple update API. If you use graphql, everything is a POST anyway. Much like SOAP back in the day. It's all just different ways to call stuff on servers. Remote procedure calls have a long history that predates all of the web.
Re:The State of HTTP in 2022
by chrisweekly on Sunday January 01, 2023 @09:58AM
(#34206728)
GET requests with a body (unspecified in HTTP/1.1) reminds me of a similar case I encountered years ago: URL query params in a POST (an HTML form whose action attr contained a query string).
Re:The State of HTTP in 2022
by hackerman123469 on Monday January 02, 2023 @03:21AM
(#34215626)
It's fairly common to have POST requests that have both a body and a query string. Or maybe not "fairly common" but it isn't really rare.
Re:The State of HTTP in 2022
by chrisweekly on Wednesday January 04, 2023 @08:56PM
(#34254886)
I know it's not that rare. But it is problematic.
I feel not obsessing about the meanings of HTTP verbs can, has, and will lead to security incidents and interoperability issues between middleware. Specifications where everyone gets to pick and choose different behaviors is a nightmare.
Edit: Example of Elastic search API with GET body, now deprecated https://www.elastic.co/guide/en/elasticsearch/reference/7.7/...
Edit 2: https://stackoverflow.com/questions/978061/http-get-with-req...
The now obsolete specification https://www.rfc-editor.org/rfc/rfc2616 , obsoleted by https://www.rfc-editor.org/rfc/rfc9110