当前位置:网站首页>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 请求方式一般用于添加和更新数据,会将数据存放在请求体中,属于隐式提交,安全性较高,传输的数据没有大小限制,可以上传文件
边栏推荐
- SQL Server manager studio(SSMS)安装教程
- (practice C language every day) reverse linked list II
- Call, apply, bind rewrite, easy to understand with comments
- Basic commands of MySQL
- SSO process analysis
- AI on the cloud makes earth science research easier
- 基于购买行为数据对超市顾客进行市场细分(RFM模型)
- Delete external table source data
- MySQL high frequency interview 20 questions, necessary (important)
- In English translation of papers, how to do a good translation?
猜你喜欢
Lesson 7 tensorflow realizes convolutional neural network
How to reconstruct the class explosion caused by m*n strategies?
雲上有AI,讓地球科學研究更省力
My daily learning records / learning methods
SAP SD发货流程中托盘的管理
After working for 10 years, I changed to a programmer. Now I'm 35 + years old and I'm not anxious
Phishing & filename inversion & Office remote template
Address bar parameter transmission of list page based on jeecg-boot
Basic commands of MySQL
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
随机推荐
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
论文摘要翻译,多语言纯人工翻译
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
LeetCode每日一题(1997. First Day Where You Have Been in All the Rooms)
Every API has its foundation when a building rises from the ground
Erreur de type résolue avec succès: type de données « catégorie» non sous - jacente
C语言_双创建、前插,尾插,遍历,删除
论文翻译英译中,怎样做翻译效果好?
How much is it to translate Chinese into English for one minute?
In English translation of papers, how to do a good translation?
LeetCode - 152 乘积最大子数组
MySQL5.72.msi安装失败
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
一文读懂简单查询代价估算
[unity] how to export FBX in untiy
SAP SD发货流程中托盘的管理
How do programmers remember code and programming language?
LeetCode每日一题(971. Flip Binary Tree To Match Preorder Traversal)
翻译生物医学说明书,英译中怎样效果佳
【软件测试进阶第1步】自动化测试基础知识