当前位置:网站首页>Application of postman-rest client plug-in
Application of postman-rest client plug-in
2022-06-12 15:23:00 【Stars_ min】
POSTMAN-REST Client The concept of
+ yes Chrome An extension of , It can be used to send requests to the server and receive responses
REST What does it mean
+ Representational State Transfer,REST Style Web service , It is through simple and clear URL To provide resource links , The client through to URL send out HTTP Request these resources , The process of acquiring and processing resources changes the state of the client application
How to request
| ID | Chinese name | English name | Method of requesting resources |
|---|---|---|---|
| 1 | increase | Creat | POST |
| 2 | Delete | Delete | DELETE |
| 3 | Change | Update | PUT |
| 4 | check | Read | Get |
give an example
- Get How the request is implemented , Operation steps
- Method of requesting resources , Here is Get
- Write interface address
- single click Send Button

- Send a POST request

- Write interface address
- Write form data
- stand-alone Send Button

however ,POST The request is to carry Cookie Of . That is to say , When we execute on a website " Post " During the operation of , We need to log in to the website first , Can be allowed to execute “ Post ” The operation of .
therefore , Although we have no way to Postman Simulate user login in , But we can carry Cookie The way to achieve " The user is logged in " This scene . Let's talk about the operation steps :
- Click on the Headers Button
- A form control appears on the left
- Parameter write “Cookie”
- Cookie What is the value of ? Grab a bag , After logging in, just execute 1 Operations , then F12 see Cookie Value , take "Request Headers" Below Cookie The values of are copied , Then paste it into Postman Internal Cookie Of "Value" here .

Excuse me, , In the top right corner of the "URL params" What is it for ?
answer : When you use this button to operate ,POST The parameters carried by the request follow URL hinder .
Excuse me, ,POST Requested parameters " Write it on the form "、" With the URL Back " this 2 What's the difference between the two ways ?
answer : The difference is that if the other party wants to get the parameters , The former is from the form , The latter is from URL take . Of course, you can also get from the form , Also from URL take .
Source of resources
https://www.cnblogs.com/musicmovie/p/4434052.html
边栏推荐
- 简单的爬虫框架:解析51job页面岗位信息
- UDP总结(TCP/IP详解卷1/2)
- RARP总结(TCP/IP详解卷1/2)
- 如何写年终总结
- Increase the maximum number of MySQL connections
- ROS beginners write the server that the little turtle rotates a certain angle at a certain speed
- Classification of annotations
- About layoffs in Internet companies
- Introduction to Eureka
- Particle filter learning record
猜你喜欢

Xshell 7 official website free download

Microservice fault tolerance

IMU的学习记录

jupyter notebook新環境快捷方式

TC menu split

Structure example

Wild pointer understanding

Use of multithreading

Function recursion example
![CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small](/img/2c/63f1c865105a74ed651bb0ef97ab60.png)
CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small
随机推荐
Solve log4j2 vulnerability and be attacked by mining and zombie process viruses
New features of ES6
Alibaba, Tencent and pinduoduo set an example, and the new logic of industrial Internet is gradually emerging
C scanf function
Function related matters
Shardingsphere practice (6) - elastic scaling
Socket原理讲解(在哪、是什么、怎么用)
粒子滤波学习记录
Solution to the new database prompt on the pagoda panel that the database name cannot be greater than 16 bits
USART (rs232422485), I2C, SPI, can, USB bus
Industrial end: a new battlefield of 618
Idea pull branch code
远程操控其它电脑--详细教程
频繁项集产生强关联规则的过程
Servlet连接数据库实现用户登录功能
ROS 中 boost::bind( ) 的使用
简单的爬虫框架:解析51job页面岗位信息
Interface.
Phpstudy indicates that the hosts file may not exist or be blocked from being opened. How to resolve the failure of synchronizing hosts
Deepin20.6 RTX3080 安装显卡驱动510.60.02、CUDA11.6、PyTorch1.11