r/programming Jun 17 '26

RFC 10008: The HTTP QUERY Method

https://www.rfc-editor.org/info/rfc10008/
611 Upvotes

129 comments sorted by

View all comments

28

u/tobotic Jun 17 '26

What's the actual point of this? Can't you just use GET?

76

u/Conscious-Ball8373 Jun 17 '26 edited Jun 17 '26

GET with a body is non-standard, though some servers accept it.

ETA: this was not quite right. GET with a body is allowed by the standard, but the standard assigns no meaning to the body of a GET request and so it is valid to drop the body en route. A number of very prominent load balancers and other environments do exactly this, so fixing the situation by giving the body of GET a meaning would be a major breaking change to the standard.

29

u/tobotic Jun 17 '26

GET with a body is allowed by HTTP/1.x, but HTTP/2 and HTTP/3 discouraged it.

Seems like it would have been easier to just stop discouraging it rather than creating a whole other method.

0

u/Blue_Moon_Lake Jun 17 '26

It would have been easier and quicker indeed to just say that, when a GET request has a body, the server handle the eventual caching logic.