当前位置:网站首页>GET和POST的区别
GET和POST的区别
2022-08-06 02:06:00 【weixin_46051260】
1.浏览器回退表现不同
GET在浏览器回退时是无害的,而POST会再次提交请求
2.浏览器对请求地址的处理不同
GET请求地址会被浏览器主动缓存,而POST不会,除非手动设置
3.浏览器对响应的处理不同
GET请求参数会被完整的保留在浏览器历史记录里,而POST中的参数不会被保留
4.参数大小不同
GET请求在URL中传送的参数是有长度的限制,而POST没有限制
5.安全性不同
GET参数通过URL传递,会暴露,不安全;POST放在Request Body中,相对更安全
6.针对数据操作的类型不同
GET对数据进行查询,POST主要对数据进行增删改!简单说,GET是只读,POST是写。
边栏推荐
猜你喜欢
随机推荐
直播回放含PPT下载|基于Flink & DeepRec构建Online Deep Learning
SOAP protocol learning and use
剑指offer第9题
Compose 进阶挑战来啦!直播预告|8 月 7 日 晚 19:30 与 GDE 导师面对面
typescript71 - Existing type declaration file (built-in declaration type file)
WPF 截图控件之移除控件(九)「仿微信」
set(自排序)——STL
Civil law common sense summary 1
Xpansiv收购APX以扩大环保商品市场基础设施规模
代理缓存是什么呢?
向港交所递交招股书的Soul,如何以社交元宇宙俘获万千Z世代的心?
typescript75 - create your own type declaration files (provide declarations for existing js)
滑动间隔缓存有什么特点呢?
typescript69 - type declaration file overview
前缀缓存有什么特点呢?
typescript73 - create your own type declaration files (shared types within the project)
6、NeRF in the Wild
Xpansiv acquires APX to expand environmental commodity market infrastructure
两数之和——LeetCode第一题
1321_一份BootLoader xmodem部分的协议分析









