July 7, 2026
HTTP QUERY vs GET vs POST: Complete Guide to the New Request Method (2026)
What if you could send a request body without pretending your read operation is a POST?

By Angular_with_Awais
3 min read
What if you could send a request body without pretending your read operation is a POST?
For years, web developers have been forced into an awkward compromise.
A simple search endpoint starts as a clean GET request.
GET /api/items?category=laptopsGET /api/items?category=laptopsEverything works perfectly.
Then product managers add more filters.
- Multiple categories
- Price ranges
- Nested sorting options
- Complex search conditions
- User preferences
Suddenly your URL looks like this:
GET /api/items?
category=laptops&
brand=apple&
price[min]=500&
price[max]=3000&
availability=in-stock&
sort=rating&
...GET /api/items?
category=laptops&
brand=apple&
price[min]=500&
price[max]=3000&
availability=in-stock&
sort=rating&
...Eventually, the URL becomes too large or simply too difficult to maintain.
Most teams switch to POST.
POST /api/items/searchPOST /api/items/searchwith
{
"category": "laptops",
"brands": ["Apple", "Dell"],
"price": {
"min": 500,
"max": 3000
}
}{
"category": "laptops",
"brands": ["Apple", "Dell"],
"price": {
"min": 500,
"max": 3000
}
}- Problem solved?
- Not exactly.
The Hidden Problem With POST
Although the endpoint only reads data, using POST tells the HTTP ecosystem something completely different.
To caches, proxies, browsers, and CDNs:
"This request might change server state."
Because of that:
- Responses usually aren't cached
- Automatic retries become risky
- Infrastructure treats it like a write operation
- Performance opportunities disappear
The application is performing a readβ¦
but the protocol says otherwise.
Why GET Isn't Enough
HTTP GET was intentionally designed without a request body.
Everything must fit inside the URL.
That creates several limitations:
- URL length restrictions
- Difficult encoding
- Poor readability
- Complicated nested objects
- Large filter payloads become painful
Imagine sending this as query parameters:
{
"departments": [
"Engineering",
"Design",
"Marketing"
],
"salary": {
"minimum": 70000,
"maximum": 150000
},
"experience": {
"minimum": 5
},
"remote": true
}{
"departments": [
"Engineering",
"Design",
"Marketing"
],
"salary": {
"minimum": 70000,
"maximum": 150000
},
"experience": {
"minimum": 5
},
"remote": true
}Encoding all of that into a URL quickly becomes impractical.
Meet HTTP QUERY
RFC 10008 introduces a brand new HTTP method:
QUERYQUERYUnlike GET, it allows a request body.
Unlike POST, it clearly communicates:
"This operation is read-only."
That means servers, caches, proxies, and CDNs understand that:
- the request is safe
- it can be repeated
- it can be cached
- it does not modify resources
Think of it as:
GET semantics + POST request body
Traditional Approach
const searchOptions = {
keyword: "angular",
tags: ["signals", "rxjs"],
level: "advanced"
};
await fetch("/api/articles/search", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(searchOptions)
});const searchOptions = {
keyword: "angular",
tags: ["signals", "rxjs"],
level: "advanced"
};
await fetch("/api/articles/search", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(searchOptions)
});The endpoint only retrieves dataβ¦
but every intermediate cache sees a POST request.
Using QUERY
The same operation becomes:
const searchOptions = {
keyword: "angular",
tags: ["signals", "rxjs"],
level: "advanced"
};
await fetch("/api/articles/search", {
method: "QUERY",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(searchOptions)
});const searchOptions = {
keyword: "angular",
tags: ["signals", "rxjs"],
level: "advanced"
};
await fetch("/api/articles/search", {
method: "QUERY",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(searchOptions)
});The intent is now explicit:
"Read data using this request body."
Example 1 β Advanced Product Search
Instead of:
GET /products?
category=laptop&
brand=apple&
brand=dell&
priceMin=500&
priceMax=2500GET /products?
category=laptop&
brand=apple&
brand=dell&
priceMin=500&
priceMax=2500You can send:
const filters = {
category: "laptop",
brands: ["Apple", "Dell"],
price: {
min: 500,
max: 2500
}
};
await fetch("/api/products/search", {
method: "QUERY",
body: JSON.stringify(filters)
});const filters = {
category: "laptop",
brands: ["Apple", "Dell"],
price: {
min: 500,
max: 2500
}
};
await fetch("/api/products/search", {
method: "QUERY",
body: JSON.stringify(filters)
});- Cleaner.
- More maintainable.
- Easier to extend.
Example 2 β Analytics Dashboard
Analytics requests often contain dozens of filters.
const reportCriteria = {
period: {
from: "2026-01-01",
to: "2026-06-30"
},
regions: ["Europe", "Asia"],
metrics: [
"revenue",
"orders",
"customers"
]
};
await fetch("/api/reports", {
method: "QUERY",
body: JSON.stringify(reportCriteria)
});const reportCriteria = {
period: {
from: "2026-01-01",
to: "2026-06-30"
},
regions: ["Europe", "Asia"],
metrics: [
"revenue",
"orders",
"customers"
]
};
await fetch("/api/reports", {
method: "QUERY",
body: JSON.stringify(reportCriteria)
});- No giant URLs.
- No fake POST requests.
Example 3 β AI Retrieval
Modern AI systems frequently search vector databases.
const semanticRequest = {
text: "Angular dependency injection",
maxResults: 15,
threshold: 0.82
};
await fetch("/api/knowledge/search", {
method: "QUERY",
body: JSON.stringify(semanticRequest)
});const semanticRequest = {
text: "Angular dependency injection",
maxResults: 15,
threshold: 0.82
};
await fetch("/api/knowledge/search", {
method: "QUERY",
body: JSON.stringify(semanticRequest)
});- The request doesn't modify anything.
- It simply retrieves matching documents.
- QUERY perfectly describes that behavior.
Example 4 β Complex Filtering
Nested filters become much easier.
const queryPayload = {
filters: {
location: {
country: "Canada",
city: "Toronto"
},
experience: {
minimum: 4
}
},
orderBy: "salary"
};
await fetch("/api/candidates/filter", {
method: "QUERY",
body: JSON.stringify(queryPayload)
});const queryPayload = {
filters: {
location: {
country: "Canada",
city: "Toronto"
},
experience: {
minimum: 4
}
},
orderBy: "salary"
};
await fetch("/api/candidates/filter", {
method: "QUERY",
body: JSON.stringify(queryPayload)
});No awkward URL encoding.
Why Caching Matters
One of the biggest advantages of QUERY is how caches can identify requests.
Instead of relying only on the URL,
the request body also contributes to the cache key.
Imagine two requests:
{
"category": "Books"
}{
"category": "Books"
}and
{
"category": "Electronics"
}{
"category": "Electronics"
}Both hit the same endpoint:
QUERY /api/searchQUERY /api/searchSince the bodies differ, caches can store two different responses even though the URL is identical.
That opens the door for efficient caching of rich search requests.
GET vs POST vs QUERY
Current Browser Support
There is one important detail.
RFC 10008 defines the HTTP method as an official standard.
However, browser APIs, HTTP clients, server frameworks, and developer tooling still need to adopt it.
That means today you should expect gradual support across:
- browsers
fetch()- server frameworks
- API gateways
- reverse proxies
- HTTP client libraries
Adoption will likely happen over time rather than overnight.
When Should You Use QUERY?
QUERY is an excellent fit when:
- Advanced search endpoints
- Reporting APIs
- Analytics dashboards
- AI retrieval systems
- Filtering large datasets
- Search with nested criteria
- Read-only operations requiring structured payloads
If the request changes server state,
POST,PUT,PATCH, orDELETEremain the correct choices.
Final Thoughts
For years, developers have been choosing between two imperfect options:
- GET provides the correct semantics but struggles with complex payloads.
- POST handles rich request bodies but incorrectly represents read-only operations.
HTTP QUERY bridges that gap by combining the strengths of both. It lets you send structured request bodies while preserving the semantics of a safe, repeatable read operation. As browser APIs, HTTP clients, and server frameworks adopt RFC 10008, it has the potential to become the preferred choice for search, analytics, reporting, and other read-heavy APIs that have outgrown URL query strings.
Sometimes the most valuable improvements are not new frameworks or languages β they're small protocol changes that make our applications communicate their intent more accurately. QUERY is one of those improvements worth keeping an eye on.
This article builds upon patterns shared by Roberto Hecker in his exploration of Advance Angular