News for hackers. Stuff that matters.
Re:Defining a new HTTP method: HTTP Search (2021) by AtNightWeCode on Saturday May 27, 2023 @11:40AM (#36095644)
Or just use GET since it already works. I don't see any problems with large query params. You can also split the search into a POST request and a GET request for the result.
Re:Defining a new HTTP method: HTTP Search (2021) by insanitybit on Saturday May 27, 2023 @11:41AM (#36095656)
> I don't see any problems with large query params.

Most servers will reject URLs after a certain size, 4-8KB.

Re:Defining a new HTTP method: HTTP Search (2021) by le-mark on Saturday May 27, 2023 @11:47AM (#36095677)
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.
Re:Defining a new HTTP method: HTTP Search (2021) by AtNightWeCode on Saturday May 27, 2023 @02:42PM (#36097134)
Depends. But moving the payload between the body and the query will not solve anything performance wise if you design for it.
Re:Defining a new HTTP method: HTTP Search (2021) by AtNightWeCode on Saturday May 27, 2023 @12:29PM (#36095994)
A query of that size will likely not benefit from a GET anyway so use a POST.
Re:Defining a new HTTP method: HTTP Search (2021) by imnotjames on Saturday May 27, 2023 @01:04PM (#36096301)
Sure except POST has its own set of issues - like not being cachable. But SEARCH or QUERY can be cached safely!
Re:Defining a new HTTP method: HTTP Search (2021) by time0ut on Saturday May 27, 2023 @11:48AM (#36095683)
A situational issue that I've run into a number of times with GET is various middle boxes inadvertently logging sensitive data that was in the query string of a GET. By sensitive data, I mean PII and CU information. While we have used POST to side step the issue, it'd be nice if there was a more appropriate method.
Re:Defining a new HTTP method: HTTP Search (2021) by AtNightWeCode on Saturday May 27, 2023 @12:40PM (#36096083)
Many logging systems exclude query parameters from the logging by default. It is also fine to include PII data in the logs as long as they are handled correctly and deleted after 30 days. But I have got burned by this problem as well. Like people using PIIs for identifiers.
Re:Defining a new HTTP method: HTTP Search (2021) by Beldin on Saturday May 27, 2023 @01:27PM (#36096498)
But a new HTTP method would require an update to the middle boxes... if you're doing that, you could also consider updating them to avoid the issue you described.

Overall, I'm not necessarily inherently against new HTTP methods. If equipment that is supposed to be transparent to HTTP isn't, should be solved elsewhere, not by a new HTTP method.

Re:Defining a new HTTP method: HTTP Search (2021) by Dylan16807 on Sunday May 28, 2023 @01:20AM (#36101388)
There's no button you can press to get all middleboxes updated.

It's better to fail on the ones that slip through the cracks than to leak data. And the failure alerts people that updates are needed here.

Re:Defining a new HTTP method: HTTP Search (2021) by slondr on Saturday May 27, 2023 @01:14PM (#36096397)
I’m pretty sure most browsers have fairly low limits for uri length.