Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
insanitybit
on May 27, 2023
|
parent
|
context
|
favorite
| on:
Defining a new HTTP method: HTTP Search (2021)
> I don't see any problems with large query params.
Most servers will reject URLs after a certain size, 4-8KB.
le-mark
on May 27, 2023
|
next
[–]
This is correct, and one only needs to consider the impact of large or unlimited length urls on server memory consumption per request to see that a relatively small limit is desirable and even necessary.
AtNightWeCode
on May 27, 2023
|
parent
|
next
[–]
Depends. But moving the payload between the body and the query will not solve anything performance wise if you design for it.
AtNightWeCode
on May 27, 2023
|
prev
[–]
A query of that size will likely not benefit from a GET anyway so use a POST.
imnotjames
on May 27, 2023
|
parent
[–]
Sure except POST has its own set of issues - like not being cachable. But SEARCH or QUERY can be cached safely!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Most servers will reject URLs after a certain size, 4-8KB.