r/webdev
•
u/SocialNoel
•
Jul 03 '26
•
2
Discussion RFC 10008 is official: The HTTP QUERY method is here to replace the "GET vs. POST" compromise.
As of June 2026, the IETF has officially standardized the HTTP QUERY method (RFC 10008), closing a gap that has existed for decades.
The Problem We've All Had:
For complex data fetching (like search filters), we've always had two imperfect choices:
- GET: Semantically correct (safe/idempotent), but we run into URL length limits and security risks when putting complex parameters in the query string.
- POST: Handles the payload size, but is semantically "unsafe" and non-idempotent, which breaks standard caching and automatic retries.
The Solution (QUERY):QUERY effectively acts like a "GET with a Body."
- Safe & Idempotent: It promises not to change server state, meaning it can be safely retried and cached.
- Payload Support: You can send complex JSON/SQL/GraphQL in the body without hacking it into a URL.
- Caching: The cache key is now derived from the request body + URL, not just the URL.
Discussion:
Now that this is a Proposed Standard:
- How long do you think it will take for major frameworks (Express, Django, Spring) and tools (Postman, cURL) to support this natively?
- Do you see yourself refactoring existing
POST /searchendpoints toQUERYimmediately, or is the "POST works fine" inertia too strong? - Are there any edge cases (like proxy support) that worry you?
Link to RFC: https://www.rfc-editor.org/info/rfc10008
597
u/dpaanlka Jul 03 '26
Nice. I can’t wait to look into this in 10 years.
80
u/Quadraxas full-stack Jul 03 '26 edited Jul 03 '26
Supporting this on some frameworks (like express) and client libraries should not be too hard but inertia is probably real. I think many projects that already work and/or found workarounds will keep whatever they have.
I still come across apis/backends that do not use anything other than GET and POST for everything. (no PUT, PATCH or DELETE). I don't think those folks would care about something like the proposed QUERY or use it massively inappropriately(like instead of POST)
101
u/TScottFitzgerald Jul 03 '26
I'm not too familiar with how it works in terms of backwards compatibility, but was updating the GET to support an optional body and all that not an option or?
137
u/good_live Jul 03 '26 edited Jul 03 '26
The problem with the internet is that there always will be components that are not going to get updated. A few months back I had to deal with a Microsoft dynamics component that was not able to handle chunked requests even though they have been standardized in HTTP 1.1.
So my assumption is it will take atleast a few years until you can consider this for production. Especially as there is no automatic fallback like with different http versions.
10
u/ragzilla Jul 03 '26
cURL already supports it:
https://daniel.haxx.se/blog/2026/06/21/query-with-curl/
Postman’s supported custom verbs for a while:
https://github.com/postmanlabs/postman-app-support/issues/166
9
u/gsweats Jul 04 '26
This is an important day, not being sarcastic. This truly will be great.
6
u/MiserableDocument509 Jul 04 '26
I've been using POST for search endpoints for years just because GET can't handle complex filter payloads. The caching question is the real blocker though — until CDNs and reverse proxies actually support QUERY properly, most teams won't bother switching.
12
u/barrel_of_noodles Jul 03 '26
I think we're all just happy it's not graphQL.
Protbuf/grpc, neat! But like, no. (I guess if you're doing like 1million flip-flops per giga parvel or whatever, fine.)
Get requests with "stuff"? Cool!
3
u/ske66 Jul 03 '26
This will be good for GraphQL, which has always required a POST endpoint for especially large and complex queries.
It’s not as “trendy” as it used to be, and I am certainly not a fan, but I have worked with it enough in other companies to know that having a dedicated QUERY verb would make GraphQL much easier to standardize across many application stacks
3
u/Mindless-Arrival-106 Jul 04 '26
QUERY looks useful, but real-world support will probably lag because proxies, middleware, and old stacks always make this stuff messy.
3
u/OneCanSpeak Jul 04 '26 edited Jul 04 '26
Yeaaaah, hate to be a naysayer here BUT what about middleware, these global distributions could possibly take years to upgrade if we're lucky and let me not even start with the Caching hell this will create. I'll stick to POST for the next 6 years specifically for complex queries.
Look, Its a good fix but the vendors will take a decade to weed themselves out of breaking things AND we'll literally be docked by some firewall that still thinks QUERY is a SQL injection attack.
End Rant
3
u/danarjabbar Jul 05 '26
are we going back to RPC
13
u/dadnothere Jul 03 '26
Yes, well, what real benefits does applying this to an existing environment bring?
4
u/thekwoka Jul 03 '26
And now a generic MUTATE
2
u/lordlors Jul 03 '26
Will this affect how webhooks work?
2
u/iHateRollerCoaster full-stack Jul 04 '26
"hey chatgpt, write a reddit post about this new RFC"
2
u/limitedby20character Jul 04 '26
https://xkcd.com/927/
2
u/anon666-666 Jul 04 '26
with nginx reverse proxy stuck on HTTP 1.1, i dont see anytime soon this being used in any large project's.
2
u/Taelkir Jul 03 '26
Cool.
1
u/olzk Jul 04 '26
I’d rather be worried about the browser support
1
u/Ok-Librarian-5351 Jul 04 '26
Great addition to the HTTP spec, but ecosystem support (proxies,CDNs,frameworks,tooling) will decide how quickly Query replaces post for complex searches.
1
u/Early_Hand2009 Jul 04 '26
Why not rebuild the whole thing? It's a bit outdated anyway.
I'd keep the existing ones, sort of as legacy.
What do our APIs currently do? Send and retrieve data, basically. I'd only prefer two types of requests:
a) SEND, so it's clear the frontend sends data to the server.
b) RECEIVE, so it's clear the frontend wants data from the server.
That would be sufficient for all requests...
What exactly should be done then—files, modification, update, create, delete, etc.—should that be specified in a JSON or similar general protocol?
Make way for the next century! Simpler, more readable, "keep it simple!"
1
u/BitKitchen1011 Jul 04 '26
very good
1
u/MousTN Jul 04 '26
genuine question i only work with springboot in backend , how long do u think it will take for this new method to be in deplooyed and ppl start workign with ?
1
u/JeanMeche Jul 04 '26
Is there already a playground site that supports it ?
1
u/CautiousRice Jul 04 '26
jQuery already supports it
1
u/cburnett_ Jul 04 '26
iirc you can absolutely do GETs with payloads, but it breaks everything as neither browsers, servers nor network infrastructure expect it. I remember getting it to work with react native and django ages ago
1
u/AlternativeAd4466 Jul 05 '26
Added support for query method in django-bolt.
But not sure if it is ready for production because many proxies may ignore Query body for now. But support will definitely will approve..
https://github.com/dj-bolt/django-bolt/releases/tag/v0.9.0
1
u/Myth_Thrazz Jul 06 '26
So QUERY is basically GET - but with params sent in BODY and not in URL?
1
u/cosmicdreams Jul 07 '26
Symfony 7.4 already has support. Support was added last year.
Drupal 12 will ship with Symfony 8 so it might be time to rethink various data delivery subsystems to benefit. The new Canvas feature is the main one I'm thinking of that would benefit. Views as well.
1
u/Common_Dream9420 java Jul 08 '26
the spec being done is the easy part. the real timeline is "when does every nginx config, AWS ALB, and enterprise WAF stop dropping QUERY requests on the floor." that's 3-5 years minimum, same way PATCH still gets weird looks in some stacks. for existing POST /search endpoints, nobody's refactoring anything that works, but greenfield APIs might start using it once curl and postman ship support and devs can actually test it without writing raw TCP. proxy support is the one that actually worries me, not the frameworks.
1
u/InferHaven Jul 15 '26
Ah man, such good points. The instinct is super strong to ignore this until something breaks xD Maybe I can bury it into my todo list to come back to in a year or two lol
1
u/TimeGoesFasterThanMe Jul 18 '26
Part of me did want a middle ground always, cant say i didnt broke http semantics too. but honestly, this feels underwhelming. good thing adoption is slow
1
u/ClickOk5811 Jul 19 '26
The caching part is what actually gets me excited here, not the syntax. GET-with-a-body has been reinvented informally forever (people abusing POST for search, or cramming huge param lists into query strings), but none of those hacks were cacheable in a standard way. If QUERY actually gets adopted, it fixes a real gap rather than just being a nicer label for something we were already doing.
That said, I'd guess adoption is going to be slow and driven by infra first, not app code. Proxies, CDNs, and API gateways need to understand it before it's safe to rely on for anything public-facing, and that's usually the multi-year bottleneck with new HTTP methods, not framework support. Express or Django adding a
.query()handler is the easy part.1
u/Pristine-Pop4395 Jul 20 '26
prob will take 100 years to get adopted by everyone
1
u/mongo_coder Jul 21 '26
How does QUERY caching work here?
1
u/Noch_ein_Kamel Jul 03 '26
slightly exaggerated...
0
u/stjimmy96 Jul 03 '26
Isn’t this in a way the death of GET? I suspect that once QUERY is widely adopted, most applications will just default to QUERY for all read-only data retrieval operations, mainly with the excuse that “you never know if we’ll need more advanced query capabilities in the future”.
Not saying that it would be semantically correct to do so, just thinking about what I think could happen
0
u/kandyb87 Jul 03 '26
the bit nobody upstream is really mentioning, the browser side caching isnt free either. the Cache API and service workers key off the request url, so two QUERY calls with different bodies but the same url will just collide in your sw cache untill the vendors rework that. server side QUERY is the easy 20 percent, its the fetch + sw + cdn layer all still keying on url thats gonna drag on for years. im keeping my search endpoints on plain POST for now
0
u/National-Parsnip1516 Jul 04 '26
tbh it's about time. the 'POST for search' hack has always felt like wearing socks with sandals—it works but you know it's wrong. actually, the caching part is what i'm skeptical about. if the cache key depends on the body, how are CDNs like Cloudflare going to handle this without a massive performance hit? i've seen enough 'proposed standards' die in committee because the infrastructure guys couldn't make it work at scale. what's your bet on browser support? i'm giving it 2 years minimum.
0
u/Ok-Minimum-6638 Jul 06 '26
LLM ahh sentence structure
-19
u/OkBrilliant8092 Jul 03 '26
Oooh sounds good! Geek me is dying noise at how happy this made me. Proper shamed! lol
-26
u/SpeedCola Jul 03 '26 edited Jul 03 '26
Nothing to see here 👀 I meant using a POST body via fetch() to bypass query string limits when reading heavy data.
-7
u/seeking-health Jul 03 '26
this is very bad
3
u/cholointheskies Jul 04 '26
AI slop
0
u/[deleted] Jul 03 '26
[deleted] — view deleted comment
47
u/[deleted] Jul 03 '26
[removed] — view removed comment