GET与POST它真的真的重要吗? [英] GET vs. POST does it really really matter?

查看:121
本文介绍了GET与POST它真的真的重要吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我知道用途的差异。 GET是获取一些数据。做一个请求和找回数据。 POST应该用于读取比我相信其他的CRUD操作。但是,当它发生的时候,服务器是否真的,如果它接收到最后一个GET与POST关心?

Ok, I know the difference in purpose. GET is to get some data. Make a request and get data back. POST should be used for CRUD operations other than read I believe. But when it comes down to it, does the server really care if it's receiving a GET vs. POST in the end?

推荐答案

既然你是一个编写服务器软件(presumably),那么,如果你告诉它关心在乎。如果您处理POST和GET相同的数据,则没有,没有。

Since you're the one writing the server software (presumably), then it cares if you tell it to care. If you handle POST and GET data identically, then no, it doesn't.

但是,浏览器绝对问津。刷新或点击回到了你作为一个POST响应的页面弹出的小您确定要提交的数据再次的提示,例如。

However, the browser definitely cares. Refreshing or clicking back to a page you got as a response to a POST pops up the little "Are you sure you want to submit data again" prompt, for example.

这篇关于GET与POST它真的真的重要吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆