当前位置:网站首页>The difference between get and post
The difference between get and post
2022-07-07 23:59:00 【Xiao Zhang, run quickly.】
get and post The main differences are as follows :
Essential difference :GET It's from the server Get data ;POST Is to the server To transfer data
1、url visibility :
get, Parameters url so ;
post,url Parameters are not visible
2、 Data transmission :
get, By joining together url Pass parameters ;
post, adopt body Body transfer parameters
3、 Cacheability :
get Requests can be cached
post Requests cannot be cached
4、 Back page reaction
get When requesting page back , No impact
post When requesting page back , Will resubmit the request
5、 The size of the transmitted data
get Generally, the size of the transmitted data shall not exceed 2k-4k( Depending on the browser , Restrictions are different , But it's not much different )
post The size of the requested transfer data is based on php.ini Profile settings , It can be infinite .
6、 Security
This is also the most difficult to analyze , In principle, post It must be better than get Security , After all, when transmitting parameters url invisible , But it can't stop some people from grabbing bags and playing when they are free . The security individual feels is not much different , That's why we should guard against gentlemen and villains . Encrypt the passed parameters , It's all the same .
7、 Data packets
GET Produce a TCP Data packets ;POST Produce two TCP Data packets . about GET Method request , The browser will http header and data Send along , Server response 200( Return the data ); And for POST, Browser sends first header, Server response 100 continue, The browser sends data, Server response 200 ok( Return the data ). In a good network environment , The difference between the time to send a packet and the time to send two packets is negligible . And in the case of bad network environment , The two packages TCP On verifying packet integrity , It has great advantages . Not all browsers will be there POST Send two packets in ,Firefox Just send it once .
边栏推荐
- Redis caching tool class, worth owning~
- 机器人(自动化)等专业课程创新的结果
- 35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
- HDU - 1260 tickets (linear DP)
- P1308 [noip2011 popularity group] count the number of words
- Traduction gratuite en un clic de plus de 300 pages de documents PDF
- LinkedBlockingQueue源码分析-新增和删除
- 【leetcode】day1
- Resolve the URL of token
- @Configuration注解的详细介绍
猜你喜欢
Kubectl's handy command line tool: Oh my Zsh tips and tricks
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
MP4文件格式解析之结合实例分析
【推荐系统基础】正负样本采样和构造
数据湖(十五):Spark与Iceberg整合写操作
BSS 7230 航空内饰材料阻燃性能测试
[the most detailed in history] statistical description of overdue days in credit
保证接口数据安全的10种方案
Magic fast power
One click free translation of more than 300 pages of PDF documents
随机推荐
aws-aws help报错
Enterprise application demand-oriented development of human resources department, employee attendance records and paid wages business process cases
全自动化处理每月缺卡数据,输出缺卡人员信息
Go learning notes (1) environment installation and hello world
Visual Studio Deployment Project - Create shortcut to deployed executable
QT and OpenGL: load 3D models using the open asset import library (assimp)
每日刷题记录 (十六)
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
Data Lake (XV): spark and iceberg integrate write operations
Preliminary test of optical flow sensor: gl9306
SQL 使用in关键字查询多个字段
HDU - 1260 Tickets(线性DP)
C language learning
At the age of 35, I made a decision to face unemployment
HB 5469民用飞机机舱内部非金属材料燃烧试验方法
Resolve the URL of token
Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
Laser slam learning (2d/3d, partial practice)
webflux - webclient Connect reset by peer Error
Aitm3.0005 smoke toxicity test