HTTP has a new method: QUERY. Tl;dr: GET with a body.

https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-14.html

(Doesn’t have an RFC number yet but has been approved, will get one in a few weeks.)

#ietf

The HTTP QUERY Method

This specification defines the QUERY method for HTTP. A QUERY requests that the request target process the enclosed content in a safe and idempotent manner and then respond with the result of that processing. This is similar to POST requests but can be automatically repeated or restarted without concern for partial state changes.

@timbray *Technically* there's no spec reason that GET can't have a body as it is (as far as I remember), but when I tried it with something a lot of stuff became unhappy.

@eythian @timbray

Made the same discovery a few years ago. Also technically you can use any word and not just "GET, POST, ..." and some APIs do...

@agowa338 @eythian @timbray yep. works just fine with curl. I kinda always assumed it was fine because like. obviously it's useful. equally obviously it's niche, but it's not like it's an unheard-of thing when urls/params are frequently length-limited.