Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Also why a GET request should never delete, or possibly even modify, data.


Indeed, although it isn't enough anymore: https://news.ycombinator.com/item?id=3100239


For sure. Combine the 2 mistakes and you're pretty fucked


[deleted]


>Why should a GET never modify data?

Because that's what the HTTP spec says. Wander off-spec, and you will eventually have problems, like the unfortunate gov department in the article.

http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Saf...

Relatedly, idempotency is a too-poorly understood concept.


> That would stop half the web working.

What do you mean?


Probably that half the web rely on GET requests to do things they are totally not intended to do, like, deleting a resource.

Therefore, if you suddenly find a way to actually forbid GET to ever trigger that, then that half wouldn't work "properly" any more.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: