PUT 和 POST 之间的技术差异是什么?
抛开 PUT 和 POST 的语义、含义、正确和常见用例(已经讨论过多次(例如
Leaving aside semantics, meanings, proper and common use cases of PUT and POST (which had been already discussed many times (e.g. here)), what are the technical differences (the way what and how is being sent) between PUT and POST?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了请求中使用的名称不同之外,POST 和 PUT 之间绝对没有区别:
与:
由于 PUT 是幂等的,因此某些路由器/代理可能会以不同的方式对待它们,但我不知道有任何此类情况。
There is absolutely no difference between POST and PUT except different name used in request:
vs.:
Since PUT is idempotent, some routers/proxies might treat them differently, but I am not aware of any such cases.