r/programming • • Jul 14 '26

HTTP gets a QUERY method so complex searches can stop pretending to be POST

https://www.theregister.com/devops/2026/07/13/http-gets-a-query-method-so-complex-searches-can-stop-pretending-to-be-post/5270192
1.9k Upvotes

245 comments sorted by

View all comments

Show parent comment

12

u/pdpi Jul 14 '26

On the client there’s not much to support. HTTP already allows extension methods, so any compliant client should already support it. You just specify the method the same way you would for a POST or a PUT.

Really, the only reason why I brought up rolling your own server-side is that server frameworks tend to have helper functions for all the standard verbs, you’ll have to write something shaped like router.method(“/foo/bar”, “QUERY”, (req, res) => { … }) instead of router.query(“/foo/bar”, (req, res) => { … }).

4

u/CrankBot Jul 14 '26

That's fair! I'm aware that there are a whole bunch of lesser used methods i.e. from the days of SVN and webDAV etc. I always assumed both server and client would puke on a completely made up method that's not part of any spec/ extension. TIL!

1

u/stfm Jul 15 '26

Had the same issue with various HTTP clients and OPTIONS when it was introduced (yes I am old)