News for hackers. Stuff that matters.
Re:Some New HTTP Verbs by samatman on Tuesday September 13, 2022 @11:07AM (#32825271)
That's actually a good example, because if the standard specified that POST must be idempotent, and that a POST without a uuid is invalid, we might have something here.

Instead there's a workaround for a serious problem, and any client (browser being by no means the only client) which doesn't respect the convention can emit identical POSTs, with no way of knowing if that was intended.

Re:Some New HTTP Verbs by svieira on Tuesday September 13, 2022 @11:13AM (#32825369)
The standard says "POST means NOT-IDEMPOTENT" and "clients MUST not re-issue a non-idempotent requests" and the client behavior naturally falls out of those two constraints.
Re:Some New HTTP Verbs by samatman on Tuesday September 13, 2022 @11:15AM (#32825397)
The standard being completely backward and impossible to enforce is a problem!
Re:Some New HTTP Verbs by P5fRxh5kUvp2th on Tuesday September 13, 2022 @12:21PM (#32826383)
standards are agreements, they've never been there with the expectation of enforcement.
Re:Some New HTTP Verbs by samatman on Tuesday September 13, 2022 @12:26PM (#32826457)
Unenforceable and unenforced are very different things.
Re:Some New HTTP Verbs by P5fRxh5kUvp2th on Tuesday September 13, 2022 @12:33PM (#32826559)
Unless you've got state actors behind it, it's unenforceable, full stop.

We saw this when MS would regularly ignore HTML standards.

Re:Some New HTTP Verbs by Ajedi32 on Tuesday September 13, 2022 @11:23AM (#32825500)
POST is intentionally not idempotent. If you want impotence, that's what PUT and DELETE are for. Sadly, browser support for those two methods is somewhat lacking. You can't specify that a form send a PUT request, for example, only GET or POST.
Re:Some New HTTP Verbs by Ferret7446 on Tuesday September 13, 2022 @05:57PM (#32830690)
You're looking for PUT.