Searching data over HTTP has always meant picking between two flawed options:
- GET: puts your search terms in the URL. Simple, but URLs have length limits (~8,000 characters), and they show up in logs, history, and bookmarks.
- POST: puts your search terms in the request body, so size isn't an issue. But POST means "this might change something," so browsers and caches won't safely retry or cache it even though a search doesn't change anything.
Developers have been misusing POST for read-only searches for years, just to get around GET's size limit.
RFC 10008 (June 2026) introduces a new HTTP method, QUERY, that combines the best of both:
- Like POST, it carries a request body (no size problem).
- Like GET, it's safe and idempotent (no side effects, safe to retry and cache).
Example request:
QUERY /contacts HTTP/1.1
Content-Type: application/x-www-form-urlencoded
select=surname,email&limit=10&match="email=*@example.*"Example response:
HTTP/1.1 200 OK
Content-Type: application/json
[{ "surname": "Smith", "email": "smith@example.org" }]- Any query language: form data, SQL, GraphQL, etc. The
Content-Typeheader defines the format. Accept-Queryheader: servers can advertise which query formats they support.- Saveable results: a
Content-Locationheader can point to a permanent URL for the result, fetchable later with plain GET. - Saveable queries: a
Locationheader can point to a saved version of the query itself, so it can be re-run later without resending it. - Caching support: works with
If-Modified-Sinceand other conditional headers, just like GET.
In short: QUERY lets APIs send complex search requests without losing GET's safety, caching, and retry guarantees, fixing a gap developers have worked around for over 20 years.