Post和Put的区别

来源:互联网 发布:手机注册淘宝买家流程 编辑:程序博客网 时间:2024/05/23 14:40

1.在Http中,post被定义为idempotent。而put不是。
idempotent:Methods can also have the property of “idempotence” in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request.”

意思为:一个方法重复执行多次,其效果一样。post多次访问服务器同一个url,其服务器返回的结果是一样的,而put则不一样。

0 0
原创粉丝点击