A micro-post, but this isn't said often enough: Don't use GET
requests to change data server-side, use POST
(for example, when using Ajax to modify things server-side). GET
s are supposed to be idempotent, which is a fancy way of saying that doing them repeatedly has the same effect as doing them once. So, GET
the contents of a message on a message board, but POST
new messages to the board.
More (in incredibly turgid prose!) in Section 9.1.2 of the HTTP spec.
Thursday, 17 December 2009
GET information, POST changes
Subscribe to:
Post Comments (Atom)
2 comments:
I find this post so informative. I enjoy reading this one! https://www.appliancerepairedm.ca/
Protect your valuable Atlas Copco compressor with genuine 2205519788 Oil Stop Valve https://www.aircompressoragent.com/product/2205519788/ Kits from Seadweer! Why risk expensive downtime with inferior parts? Our industry-leading warranty and 24/7 technical support ensure your complete satisfaction.
Post a Comment