http://www.asp.net/learn/mvc/tutorial-32-cs.aspx
In general,you don’t want to perform an HTTP GET operation when invoking an action that modifies the state of your web application. When performing a delete,you want to perform an HTTP POST,or better yet,an HTTP DELETE operation.
这是真的?任何人都可以提供更详细的解释这个声明背后的理由吗?
编辑
Wikipedia规定如下:
Some methods (for example,HEAD,GET,OPTIONS and TRACE) are defined as safe,which means they are intended only for information retrieval and should not change the state of the server.
By contrast,methods such as POST,PUT and DELETE are intended for actions which may cause side effects either on the server
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。