We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET
POST
URL
Bookmark
cache
Request body
TCP
http header
data
200
header
100 continue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
标准答案
GET
在浏览器回退时是无害的,而POST
会再次提交请求GET
产生的URL
地址可以被Bookmark
,而POST
不可以GET
请求会被浏览器主动cache
, 而POST
不会, 除非手动设置GET
请求只能进行URL
编码, 而POST
支持多种编码GET
请求参数会被完整保存在浏览器历史记录里, 而POST
中的参数不会保留GET
请求在URL
传送的参数是有长度限制的, 而POST
没有GET
比POST
更不安全, 因为参数直接暴露在URL
上, 不能传递敏感信息GET
参数通过URL
传递,POST
放在Request body
中加强版
GET
会产生一个TCP
数据包: 浏览器会把http header
和data
一并发送出去,服务器响应200
(返回数据)POST
产生两个TCP
数据包, 浏览器先发送header
, 服务器响应100 continue
, 浏览器再发送请求, 服务器响应200
(返回数据)The text was updated successfully, but these errors were encountered: