RFC 10008: HTTP QUERY: Safe, idempotent queries with content
Summary
In June 2026, Julian Reschke of greenbytes in Münster, James M Snell of Cloudflare and Mike Bishop of Akamai specified the HTTP method QUERY in RFC 10008. Like POST, QUERY carries a query in the message content, but like GET it is safe and idempotent. Caches and clients may therefore store such requests and repeat them automatically after connection failures.
The gap between GET and POST
Long queries in the URL hit unknown size limits, end up in logs and bookmarks, and turn every parameter combination into a resource of its own. Many services therefore use POST, but then it is not apparent without knowledge of the server that the request changes nothing.
QUERY closes this gap. The introduction shows the same query as GET with parameters, as POST with form content and as QUERY: the content stays in the body, but the meaning is clearly read-only.
Caching and resources
Because the query is in the body, the cache key must include the content. Caches may normalise insignificant differences such as encoding or formatting first, but do not change the request in doing so.
A server can give the query or its result a URL of its own and communicate it via Content-Location or Location; the result can then be retrieved later with GET. The new Accept-Query field shows which query formats a resource understands.
Ideas
- QUERY is safe and idempotent like GET.
- The query sits in the message content as with POST.
- The cache key includes the request content.
- Accept-Query announces supported query formats.
- Results can get their own URL for later GET requests.
- Browsers need a CORS preflight for cross-origin QUERY.
Insights
- When applications misuse a method, it is a sign of a method missing from the standard.
- Clear semantics allow intermediaries optimisations that are impossible with misused POST.
Facts
- RFC 10008 appeared in June 2026 as a Proposed Standard and is 24 pages long.
- The Accept-Query field uses Structured Fields syntax.
- QUERY is not a CORS-safelisted method and triggers a preflight.
- RFC 9110 recommends supporting URIs of at least 8000 octets; the introduction refers to this.
References
Remarks
- Julian Reschke was already a co-editor of RFC 9110 on HTTP semantics.
Recommendations
- Check existing search APIs using POST to see whether QUERY expresses the semantics more clearly.
- Before deployment, test whether proxies, firewalls and load balancers pass the new method.
- Limit the size and complexity of queries on the server.
Read the RFC at the RFC Editor
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.