TGViewer
Qishloqi 👨‍💻 Qishloqi 👨‍💻 @qishloqi_dev · 56 subscribers
Post #128 187
New QUERY http verb just landed in RFC 10008 standard. It solves a couple real issues.

1. GET request bodies are not standardized across the web, any server/proxy/middleware decides what to do with it, and in most cases your GET bodies don't reach the sever.
2. This is just side effect of 1. That we're forced to cram everything into search params, there's (a) encoding instabilities and (b) length limits.
3. POST requests that we're using to send bodies for fetching resources can't be safely cached, and retried.

QUERY declares itself as safe and idempotent, it adds standard body to request that everyone who's implementing it must support. And your body can be of any type, as long as you supply/respect server's Accept-Query and send proper Content-Type. RFC states the cache key must incorporate URI, request body and it's Content-Type.

Moreover, to a QUERY request server can return headers Content-Location and Location. Content-Location is where results of your specific request are kept, and query is NOT re-executed on subsequent calls. Whereas Location is for re-runnig the query without sending the whole body for fresh data. You should be able to safely GET both locations.

Standard explicitly mentions not to use it for simple queries and encourages to rely on it once industry catches up.

Read the spec.

@qishloqi_dev
IETF Datatracker RFC 10008: 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 QUERY requests…
More from @qishloqi_dev
  1. Sep 19, 20264 hours of sleep = 4 shots of espresso. And I'm back at it on a Saturday
  2. Sep 18, 2026I think this is important: https://keepandroidopen.org/
  3. Sep 18, 2026Android 17 is the first since 3.x to add new APIs without releasing to the AOSP Article, C…
  4. Sep 14, 2026@kulgan_kal
  5. Aug 25, 2026Tmuxda bir nechta windowlarda Claude sessionlarni ishlatsangiz qo'l keladi: https://github…
  6. Aug 18, 2026https://caiustheory.com/git-git-git-git-git/
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →