当前位置:网站首页>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 .
边栏推荐
- DataGuard active / standby cleanup archive settings
- [programming problem] [scratch Level 2] December 2019 flying birds
- 80% of the people answered incorrectly. Does the leaf on the apple logo face left or right?
- Archery installation test
- Kubectl's handy command line tool: Oh my Zsh tips and tricks
- Chisel tutorial - 04 Control flow in chisel
- Robomaster visual tutorial (1) camera
- Pigsty: out of the box database distribution
- P5594 [xr-4] simulation match
- Robomaster visual tutorial (10) target prediction
猜你喜欢
保证接口数据安全的10种方案
UIC564-2 附录4 –阻燃防火测试:火焰的扩散
【编程题】【Scratch二级】2019.03 绘制方形螺旋
【编程题】【Scratch二级】2019.09 绘制雪花图案
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
数据湖(十五):Spark与Iceberg整合写操作
Data Lake (XV): spark and iceberg integrate write operations
每日刷题记录 (十六)
SQL connection problem after downloading (2)
The result of innovation in professional courses such as robotics (Automation)
随机推荐
Resolve the URL of token
Alibaba cloud MySQL cannot connect
Laser slam learning (2d/3d, partial practice)
Connect diodes in series to improve voltage withstand
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
C - linear table
DataGuard active / standby cleanup archive settings
An example analysis of MP4 file format parsing
Orthodontic precautions (continuously updated)
limit 与offset的用法(转载)
How to measure whether the product is "just needed, high frequency, pain points"
Data analysis series 3 σ Rule / eliminate outliers according to laida criterion
Basic learning of SQL Server -- creating databases and tables with the mouse
One click free translation of more than 300 pages of PDF documents
Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)
Robomaster visual tutorial (1) camera
神奇快速幂
正畸注意事项(持续更新中)
Apng2gif solutions to various problems
一鍵免費翻譯300多頁的pdf文檔