当前位置:网站首页>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 )
![]()
边栏推荐
- Rk3566 add LED
- 链表(简单)
- 瑞能实业IPO被终止:年营收4.47亿 曾拟募资3.76亿
- Leetcode array question brushing notes
- Brief introduction to revolutionary neural networks
- Zhizhen new energy rushes to the scientific innovation board: the annual revenue is 220million, and SAIC venture capital is the shareholder
- 2022 driller (drilling) examination question bank and simulation examination
- Don't be unconvinced. Mobile phone function upgrade is strong
- How to introduce devsecops into enterprises?
- Blue Bridge Cup study 2022.7.5 (morning)
猜你喜欢

Current situation, trend and view of neural network Internet of things in the future
![[machine learning notes] several methods of splitting data into training sets and test sets](/img/f6/eca239bb4b1764a1495ccd9a868ec1.jpg)
[machine learning notes] several methods of splitting data into training sets and test sets

upload (1-6)

软件测试人在深圳有哪些值得去的互联网公司【软件测试人员专供版】

如何将 DevSecOps 引入企业?
![[js] basic syntax - for loop](/img/7f/6ddc47c062caa7d39538f88e12b1a0.jpg)
[js] basic syntax - for loop

Kotlin collaboration uses coroutinecontext to implement the retry logic after a network request fails

清大科越冲刺科创板:年营收2亿 拟募资7.5亿

Tidb DM alarm DM_ sync_ process_ exists_ with_ Error troubleshooting

Why do I support bat to dismantle "AI research institute"
随机推荐
软件测试人在深圳有哪些值得去的互联网公司【软件测试人员专供版】
Some ideas about Apache mesos
关于Apache Mesos的一些想法
LeetCode_69(x 的平方根 )
Xampp configuring multiple items
TDengine 社区问题双周精选 | 第三期
VC development of non MFC program memory leak tracking code
UE source code reading [1]--- starting with problems delayed rendering in UE
Jetpack compose introduction to mastery
广发期货排名多少?网上办理广发期货开户安全可靠吗?
常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...
清大科越冲刺科创板:年营收2亿 拟募资7.5亿
What is the ranking of GF futures? Is it safe and reliable to open an account for GF futures online?
[machine learning notes] how to solve over fitting and under fitting
Sqllab 1-6 exercise
Requset + BS4 crawling shell listings
R语言dplyr包select函数、group_by函数、mutate函数、cumsum函数计算dataframe分组数据中指定数值变量的累加值、并生成累加数据列
Google EventBus 使用详解
Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet
Shenziyu, the new chairman of Meizu: Mr. Huang Zhang, the founder, will serve as the strategic adviser of Meizu's scientific and technological products