当前位置:网站首页>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
边栏推荐
猜你喜欢

Tcp/ip three handshakes and four waves (interview questions)

Servlet连接数据库实现用户登录功能

Simple crawler framework: parsing 51job page position information

3D reconstruction system | L3 dual view motion recovery structure (SFM binocular SFM)

ROS 中 boost::bind( ) 的使用

org. xml. sax. SAXParseException; lineNumber: 63; columnNumber: 10; The definition of "mapper" in the related type must be matched with "(CAC

Function related matters

TF learning notes in ROS

粒子滤波学习记录

Learning records of new keywords, references & pointers
随机推荐
USART (rs232422485), I2C, SPI, can, USB bus
TC menu split
TCP与UDP的区别,以及TCP的三次握手和TCP的四次挥手
Qiming Zhixian shares the application scheme of 2.8-inch handheld central control screen
Tcp/ip three handshakes and four waves (interview questions)
C constant, cannot be changed
Acwing暑期每日一题(6月10日性感素数)
使用CSDN-markdown编辑器
First set and follow set in vernacular
Leetcode daily question - fair candy bar exchange
Module yaml error: Unexpected key in data: static_ context [line 9 col 3]
Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11
New关键字、引用&与指针的学习记录
解决log4j2漏洞遭到挖矿、僵尸进程病毒攻击
关于互联网大厂裁员
[LDA] LDA theme model notes - mainly Dirichlet
Function recursion example
Industrial end: a new battlefield of 618
[jvm learning] parental delegation mechanism and PC register (program counter)
C data type