News for hackers. Stuff that matters.
Re:RFC 10008: The new HTTP Query Method by Joker_vD on Wednesday June 17, 2026 @08:28AM (#48569456)
> It also implies an unbounded and user-controlled cache key,

The query part of GET's URI is also barely bounded in practice and user-controlled, and is indeed used as part of the cache key (because it's a part of URI), so I am not sure why you raise this objection at all.

Re:RFC 10008: The new HTTP Query Method by giancarlostoro on Wednesday June 17, 2026 @08:41AM (#48569644)
> and user-controlled

I've found some sites that tack on a session ID and if you try to tamper with the URL in any way, it sends you back to "Page 1" really annoys me lol at that point let me skip to any page with your web UI.

Re:RFC 10008: The new HTTP Query Method by PunchyHamster on Wednesday June 17, 2026 @09:44AM (#48570505)
Well, because it is more code. Current caching software caches by headers + query string. It now needs to be expaned to cache by body too.

It feels very pointless and there is no drawback of just using POST

Re:RFC 10008: The new HTTP Query Method by OvervCW on Wednesday June 17, 2026 @10:03AM (#48570721)
There is: your browser or other type of client does not know it can repeat a POST request if it fails, whereas a QUERY request can be freely repeated in case of errors.
Re:RFC 10008: The new HTTP Query Method by spockz on Wednesday June 17, 2026 @04:37PM (#48576518)
Not freely. It is idempotent, not safe. So it still can have serious load consequences.
Re:RFC 10008: The new HTTP Query Method by Joker_vD on Wednesday June 17, 2026 @04:59PM (#48576811)

    Unlike POST, however, the method is explicitly safe and idempotent, allowing
    functions like caching and automatic retries to operate.
Re:RFC 10008: The new HTTP Query Method by account42 on Thursday June 18, 2026 @06:34AM (#48583396)
Putting something in a spec does not automatically make it true. In the real world if you repeat expensive queries more than an undefined amount you get blocked or at least bot-checked.
Re:RFC 10008: The new HTTP Query Method by projektfu on Thursday June 18, 2026 @08:13AM (#48584158)
From the browser POV it doesn't need to ask if you want to re-send data.
Re:RFC 10008: The new HTTP Query Method by themgt on Thursday June 18, 2026 @10:30AM (#48585990)
Putting something in a spec does not automatically make it true.

Terrible news for computing.

Re:RFC 10008: The new HTTP Query Method by spockz on Saturday June 20, 2026 @02:20AM (#48606828)
The point is that you need to take care to make the implementation of that endpoint safe. It isn’t safe magically by itself.
Re:RFC 10008: The new HTTP Query Method by themgt on Saturday June 20, 2026 @09:58AM (#48609292)
Great, got it. I'll update my running "how computing works" chart with this new information:

  | implementation = reality | magic  |
  |-----------------------------------|
  | 999,999,999,971 (+1)     | 0      |
Re:RFC 10008: The new HTTP Query Method by spockz on Tuesday June 23, 2026 @10:51AM (#48645940)
Why the snark? The existing methods have been around for ages. Many engineers I’ve encountered were not even aware that there was a distinction between “idempotent” and “safe” as attributes of a method and generally conflated them, using “safe” in the sense of the dictionary definition instead of the spec’s.

Elsewhere it was suggested that we can now replace POST with this query. I was trying to be cautionary because just changing the method alone will bring different behaviour. I did so in brevity because I was in a rush. IMHO, that does not call for snark.

Re:RFC 10008: The new HTTP Query Method by spockz on Thursday June 18, 2026 @01:14PM (#48588479)
Yes. That is what the spec says. However, if the search query is expensive you need some form of caching. Either on the endpoint itself caching the data, or the mechanism with location to redirect to the location of the result.
Re:RFC 10008: The new HTTP Query Method by afavour on Wednesday June 17, 2026 @10:01AM (#48570699)
Is caching not the primary reason to use this over POST? You should never want to cache POST requests.
Re:RFC 10008: The new HTTP Query Method by drdexebtjl on Wednesday June 17, 2026 @04:28PM (#48576379)
No. Being idempotent, it also lets the browser/client/reverse proxy retry it if it fails.
Re:RFC 10008: The new HTTP Query Method by nfw2 on Wednesday June 17, 2026 @05:36PM (#48577253)
Technically a put or a patch is also idempotent. The benefits are idempotent and safe (and semantically appropriate). Post (generally) communicates something is changing whereas a query doesn't
Re:RFC 10008: The new HTTP Query Method by gamache on Wednesday June 17, 2026 @07:10PM (#48578299)
PUT is idempotent, PATCH is not always. The semantics of a PATCH payload are up to the server and standards like JSON Patch (RFC 6902, https://datatracker.ietf.org/doc/html/rfc6902) allow non-idempotent operations like adding an item to a list.
Re:RFC 10008: The new HTTP Query Method by nfw2 on Thursday June 18, 2026 @02:30AM (#48581534)
I stand corrected although using patch this way seems goofy to me.