当前位置:网站首页>The difference and use between get request and post request
The difference and use between get request and post request
2022-07-19 12:40:00 【grownto9】
As a front-end development , HTTP Medium POST Request and GET Requests are often used , Some people may know , But its principle and how to use it are not particularly clear , Today, let's talk about the difference between the two and how to use them .
GET Request and POST Differences in requests
1、 GET request : GET As the name suggests, requests are used to obtain information . Its essence is to send a request to get a resource on the server . Resources go through a set of HTTP Header and render data ( Such as HTML Text , Or pictures or videos ) Return to the client .

2、 POST request : POST The request is similar to a letter, and the parameters are transmitted in an envelope . Its essence is to transmit data like a server . It is used to send data to the server to create or update resources .

How to use GET Request and POST request
Here we use Eolink Let me show you how to use GET Request and POST request .
1、 GET Use of request choice GET request , Input url , Add parameters to the request parameters , url This information will be automatically supplemented , Click Send , When the return parameter is 200 , It indicates that the interface operation is successful , You can view the returned results in the returned results .

In fact for GET request , The browser will http header and data Send along , Server response 200 ( Return the data ), But the operation will not show , The page will only display the response data and return results .

Tips: , stay POST Throughout the request , Including the browser sending first header , Server response 100 continue , The browser sends data , Server response 200 ok ( Return the data ), Although the display page will not be displayed , But the request process includes the above steps .
The interface management tool used in the figure is Eolink , It supports HTTP 、 HTTPS 、 WS 、 WSS And other commonly used protocols , If you are interested, you can use it by yourself :www.eolink.com
边栏推荐
- Will webgpu become the killer of webgl?
- Harmonyos quick start: Hello World
- Acwing786. The kth number
- Solution: function RGB is missing argument $green Problems of
- Acwing4405. 统计子矩阵
- SwiftUI 颜色教程大全之中创建自定义调色板
- Redis逻辑集群创建
- Machine learning (I) Wu enda
- Do you still need to release the database connection manually with typeorm
- HICP day 3
猜你喜欢

Investment logic in market "uncertainty" 2020-03-18

Core base station_ The error "no gateways configured" is reported when starting the CPA file

Day 4 homework

云犀&腾讯云达成战略合作,加速拓展全球直播市场

C # from introduction to mastery Part 1: C # overview and introduction

About the "bottom reading" mentality, it makes you exhausted 2020-03-15

Lazy to the bone, I am too lazy to write articles in CSDN. I write articles based on selenium simulation

GET 请求和 POST 请求的区别与使用示例

ros(26):ros::Time::now(),ros::Duration,toSec(),toNSec();计算程序执行时间
MIHA tour 2023 autumn recruitment officially begins ~ early approval has the opportunity to avoid written examination!
随机推荐
Lazy to the bone, I am too lazy to write articles in CSDN. I write articles based on selenium simulation
OpenCV 教程 03: 如何跟踪视频中的某一对象
Day 1 Experiment
Acwing785. Quick sort
What is the relationship between softmax and cross enterprise?
脉冲函数、阶跃函数和斜坡函数及脉冲响应
Experiment the next day
二叉树2—对称性递归问题
GET 请求和 POST 请求的区别和使用
C # from introduction to mastery Part 1: C # overview and introduction
2022-07-07:Spire. Office 7.7.2 for net debuted
Talk about the redis cache penetration scenario and the corresponding solutions
Installation and use of MySQL under Linux
Redis集群主备缓存区满了导致主备频繁倒换
机器学习作业1
Analyze a ros2 cmakelists in detail Txt file
RingBuffer
Opencv tutorial 03: how to track an object in a video
In 2022, how to choose cross end technology solutions?
Redis logical cluster creation