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

Servlet知识详解(2)

RARP总结(TCP/IP详解卷1/2)
![[jvm learning] parental delegation mechanism and PC register (program counter)](/img/23/c7b1de7f648716c0f6b615dd22c64d.jpg)
[jvm learning] parental delegation mechanism and PC register (program counter)

PTA:自测-3 数组元素循环右移问题 (20分)

New关键字、引用&与指针的学习记录

PTA:自测-2 素数对猜想 (20分)

C operator

广播和多播(TCP/IP详解卷1/2)

Mh32f103arpt6 hardware and software compatible alternative to stm32f103rct6
![[LDA] basic knowledge notes - mainly AE and VAE](/img/1c/ccc073cac79b139becd5de0b9a91b1.png)
[LDA] basic knowledge notes - mainly AE and VAE
随机推荐
Pta: self test -2 prime pair conjecture (20 points)
Prompt that the program cannot access key files / directories when installing PS software. Error code: 41
Is it safe to open an account for flush mobile stock trading
Pta: self test -3 array element cyclic right shift problem (20 points)
Classification of annotations
學習是一件逆人性的事情(成為高手的內功心法)
3D reconstruction system | L3 dual view motion recovery structure (SFM binocular SFM)
Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol
Pointer related concepts
Idea pull branch code
CUDA out of memory 或 BrokenPipeError: [Errno 32] Broken pipe 或 OSError: [WinError 1455] 页面文件太小的解决办法
How to set public IP access on the H3C gr5200 router
Function recursion example
机器人前行、旋转的service编写
Two implementation methods of generic interface
[jvm learning] virtual machine stack
[jvm learning] local method stack and heap
安装rhel 7/8 (红帽)虚拟机(转载)
Socket原理讲解(在哪、是什么、怎么用)
USART (rs232422485), I2C, SPI, can, USB bus