4 ms·
... and you just broke bookmarks ... Why do people insist on hammering in the screws, and screwing in the nails? If you want to send data from the browser bac
by Stormbringer 16y ago
... and you just broke bookmarks ...
Why do people insist on hammering in the screws, and screwing in the nails?
If you want to send data from the browser back to the server, use a post. It isn't difficult!
Is the motivation behind this secretly that there is some retarded 3rd party framework in play here that doesn't support post? Something like Ruby on Rails or Django or some weird ass Java REST library???
- alinajaf 16y agoI'm positive that rails and fairly sure that django don't subscribe to the madness of state changing get-requests. From what I've seen of Java though, all bets are off.
- Xk 16y agoThere's no reason to bookmark the "Delete this email" link (a la SquirrelMail, RoundCube). Sometimes links make sense to use, and it's possible to safely make GET requests change state when you need to. Edit: Now that I think about it, why would you want to bookmark a link which modified state? The only time to use a nonce is to make it secure against CSRF attacks. You can't bookmark them when they're a post anyways, so you don't lose anything. Am I wrong somewhere?
- steveklabnik 16y agoRails does all of this stuff 100% correct. It basically gives you a Level 2[1] REST interface by default. The people most likely screwing this up are the PHP-without-a-framework people. 1: http://martinfowler.com/articles/richardsonMaturityModel.html#level2 http://martinfowler.com/articles/richardsonMaturityModel.htm...