当前位置:网站首页>Introduction, installation, introduction and detailed introduction to postman!
Introduction, installation, introduction and detailed introduction to postman!
2022-07-05 14:11:00 【Automated test】
One 、Postman Background introduction
Users are developing or debugging web programs or web pages B/S Pattern program needs some methods to track web page requests , Users can use some network monitoring tools such as the famous Firebug Wait for web debugging tools . Today, I will introduce to you that this web debugging tool can not only debug simple css、html、 Script and other simple web page basic information , It can also send almost all types of HTTP request !Postman Sending network HTTP The request aspect can be said to be Chrome One of the representative products in plug-in products .
notes : because 2018 Beginning of the year chrome To stop chrome Application support ,postman The plug-in may not work properly . at present chrome What the app store can use is chrome Extender and topic background .
Two 、Postman Operating environment of
postman For different operating systems ,Postman Mac、Windows X32、Windows X64、Linux System , And support postman Browser extensions 、postman chrome Applications, etc .
Postman Use reference documents :
1. Official English documents :
https://learning.postman.com/docs/
2.chrome Plug in postman Chinese tutorial :
https://huajiakeji.com/web-development/2017-12/870.html
3、 ... and 、Postman Download and install
1> 、postman Download address :
https://www.postman.com/downloads/
2>. Postman Official website download address :
https://www.getpostman.com/apps
3>.Postman install
postman There are several installation methods , As we mentioned above , We are divided into three installation modes :
1、chrome browser postman Plug in installation
postman Google browser installation plug-in , So the premise is that you have to install Google browser on your computer , After installing the Google browser, you still need to download what you need in the Google online app store Postman plug-in unit , The plug-in can be downloaded as follows :
Cannot access google App store friends Sure Reference here , Or download the client version
2.Postman Computer client installation
1).macOS install
Once you download the app , You can drag files to “ Applications ” Folder . double-click Postman open the application .
2).Windows install
Download the installation file
Run setup
3). Linux install
I haven't tried , But I found some references ( Interested friends can experiment by themselves )
ubuntu install postman:
https://blog.csdn.net/qianmosolo/article/details/79353632
Ubuntu16.04 Installation on Postman Applications :
https://www.bluematador.com/blog/postman-how-to-install-on-ubuntu-1604?utm_source=hootsuite&utm_medium=twitter&utm_campaign=
Four 、Postman The basic function of

5、 ... and 、 Interface request flow
1. GET request GET request : Click on Params, Input parameters and value, You can input more than one , It's instantly displayed in URL On link ,
therefore ,GET The request header and request parameters of the request, such as when there is no special declaration in the interface document , Can not fill .
Response example : There will be a response status code for the request , response time , And the response size 
Response body example : There can be many forms of response , I'm here because the request is Baidu ,so, The response is html , In general , Our custom interface is json Format response body

2. POST request
POST Request a : Form submission
The request method is set in the example below , request URL, Request parameters , But there is no request header set
In my use , The request header is automatically generated according to the form of request parameters In the request header Content-Type There is an association with the format of the request parameters , such as :
POST Request 2 :json Submit
The following figure , When we choose JSON(application/json) It will automatically set up for us headers by application/json
No screenshots here For example , Friends can check by themselves

POST Request three :xml Submit 
POST Request 4 : Binary file submission 
Other request methods are as follows PUT,DELETE General process and GET,POST almost , Here we will not give examples
6、 ... and 、 Manage use cases —Collections
stay POST There is a picture of basic functions, which roughly describes Collections The role of , Here we will elaborate on .
Collections aggregate : Multiple requests can be put together , And manage it . What kind of interface requests can be placed in the same collection in ?
I'm here to tell you that you can do this : One project, one Collection, This makes it easy to find and process data in a unified way .


First step , establish Collections
Click on the belt in the picture above + Icon for , Input Name:”abc”,Description:” Example demo”, Click on Create Button to create a successful Collections. The second step , stay Collections Add a request to
Prepare all the data requested by the interface on the right side , After verification , Click on save Button .

After you save it, you can see it here , You can click here to call again later , It's convenient, fast and convenient

collections Fine management , Here we group different requests
Add subfolders


This is the result of our fine division , Does it look more organized ?

7、 ... and 、 Authentication Authentication
1、Basic Auth
It's a basic validation , So it's going to be easier Will directly put the user name 、 The password information is placed in the requested Header in .
2、Digest Auth
than Basic Auth It's a lot more complicated . Generated with the currently filled in value authorization header. So it's generating header Make sure the settings are correct before . If the current header Already exist ,postman Will remove the previous header.
3、OAuth 1.0
postman Of OAuth helper Let you sign up for OAuth
1.0 Authentication based requests .OAuth No need to get access token, You need to go. API Obtained by the provider .OAuth 1.0 Can be in header Or set in query parameters value.
4、OAuth 2.0
postman Support acquisition OAuth 2.0 token To add to requests in .
If this article helps you , Please make up a little like ! Only in this way can I have the motivation to continue to update !
Have you learned today's little knowledge
Welcome to interact with us in the message area ~
If you think it's helpful, give it a compliment
Finally, Xiaobian arranges some learning material notes and the above postman A full set of tutorials for using interface testing tools
Want to edit learning materials, notes, documents and the above postman A full set of tutorials for using interface testing tools
【 Private letter my key words “999” Free access 】 High salary resume template ( Interview collection is free )
High salary resume template ( Interview collection is free )


High salary resume template ( Interview collection is free )
![]()
边栏推荐
- 鏈錶(簡單)
- Shenziyu, the new chairman of Meizu: Mr. Huang Zhang, the founder, will serve as the strategic adviser of Meizu's scientific and technological products
- Enjoy what you want. Zhichuang future
- What are the advantages and characteristics of SAS interface
- 锚点导航小demo
- 物联网应用技术专业是属于什么类
- 昆仑太科冲刺科创板:年营收1.3亿拟募资5亿 电科太极持股40%
- Tidb DM alarm DM_ sync_ process_ exists_ with_ Error troubleshooting
- Current situation, trend and view of neural network Internet of things in the future
- JS takes key and value from an array object to form a new object
猜你喜欢

牛客网:拦截导弹

物联网应用技术专业是属于什么类

为什么我认识的机械工程师都抱怨工资低?

What category does the Internet of things application technology major belong to

Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet

IP packet header analysis and static routing

金融壹账通香港上市:市值63亿港元 叶望春称守正笃实,久久为功

Why do mechanical engineers I know complain about low wages?

upload (1-6)

TiCDC 6.0原理之Sorter演进
随机推荐
最简单不用证书也可以多开功能的方式
Anchor navigation demo
js 从一个数组对象中取key 和value组成一个新的对象
TiCDC 6.0原理之Sorter演进
Discussion on memset assignment
Tdengine biweekly selection of community issues | phase III
JS takes key and value from an array object to form a new object
2022年机修钳工(高级)考试题模拟考试题库模拟考试平台操作
广发期货排名多少?网上办理广发期货开户安全可靠吗?
用“新”字来吸引好奇的人群
深拷贝真难
Source code analysis of etcd database -- peer RT of inter cluster network layer client
R语言使用原生包(基础导入包、graphics)中的boxplot函数可视化箱图(box plot)
Tiflash compiler oriented automatic vectorization acceleration
神经网络物联网未来现状和趋势及看法
几款分布式数据库的对比
牛客网:拦截导弹
Sqllab 1-6 exercise
Comparison of several distributed databases
[buuctf.reverse] 152-154