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则不一样。