当前位置:网站首页>GET 和 POST 请求类型的区别
GET 和 POST 请求类型的区别
2022-07-06 06:41:00 【辰风沐阳】
1. 前言
GET 和 POST 请求类型的区别 ?
虽然这个问题是基础知识,但这也算是面试热门问题,做下总结就当复习了吧
2. GET 和 POST 的区别
1. 使用场景
GET 请求方式一般用于获取和删除数据,POST 请求方式一般用于添加和修改数据
2. 传参方式
GET 请求方式传递参数会将参数拼接到 URL 地址中
POST 请求方式传递参数会将参数放到请求体(Request Body)中
3. 安全性
GET 是显式提交,安全性较低;POST 是隐式提交,安全性较高
4. 传输的数据大小
GET 请求方式传输的数据大小不能大于 2KB,而 POST 请求方式传输的数据大小没有限制
5. 上传文件
GET 请求方式不能上传文件,而 POST 请求方式可以上传文件
3. GET 和 POST 的区别总结
GET 请求方式一般用于获取数据,会将数据拼接到 URL 地址中,属于显式提交,安全性较低,传输的数据大小限制在 2KB 以内,不能上传文件
POST 请求方式一般用于添加和更新数据,会将数据存放在请求体中,属于隐式提交,安全性较高,传输的数据没有大小限制,可以上传文件
边栏推荐
- Automated test environment configuration
- [ 英语 ] 语法重塑 之 英语学习的核心框架 —— 英语兔学习笔记(1)
- 查询字段个数
- Fedora/rehl installation semanage
- [English] Verb Classification of grammatical reconstruction -- English rabbit learning notes (2)
- Facebook AI & Oxford proposed a video transformer with "track attention" to perform SOTA in video action recognition tasks
- 论文翻译英译中,怎样做翻译效果好?
- Py06 dictionary mapping dictionary nested key does not exist test key sorting
- 成功解决AttributeError: Can only use .cat accessor with a ‘category‘ dtype
- 翻译公司证件盖章的价格是多少
猜你喜欢

Office doc add in - Online CS

CS-证书指纹修改

Wish Dragon Boat Festival is happy

ECS accessKey key disclosure and utilization

Chapter 7 - thread pool of shared model

Leetcode daily question (971. flip binary tree to match preorder traversal)

金融德语翻译,北京专业的翻译公司

Summary of leetcode's dynamic programming 4

How to reconstruct the class explosion caused by m*n strategies?

基于PyTorch和Fast RCNN快速实现目标识别
随机推荐
P5706 [deep foundation 2. Example 8] redistributing fat house water -- February 13, 2022
Do you really know the use of idea?
Call, apply, bind rewrite, easy to understand with comments
Chapter 7 - thread pool of shared model
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
Grouping convolution and DW convolution, residuals and inverted residuals, bottleneck and linearbottleneck
E-book CHM online CS
[Yu Yue education] Dunhuang Literature and art reference materials of Zhejiang Normal University
Lesson 7 tensorflow realizes convolutional neural network
[unity] how to export FBX in untiy
Distributed system basic (V) protocol (I)
翻译公司证件盖章的价格是多少
Data security -- 13 -- data security lifecycle management
In English translation of papers, how to do a good translation?
Advanced MySQL: Basics (1-4 Lectures)
雲上有AI,讓地球科學研究更省力
Latex文字加颜色的三种办法
中英对照:You can do this. Best of luck祝你好运
Introduction and underlying analysis of regular expressions
Cobalt strike feature modification