当前位置:网站首页>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 )
![]()
边栏推荐
- 明峰医疗冲刺科创板:年营收3.5亿元 拟募资6.24亿
- R language ggplot2 visualization: visual line graph, using legend in theme function The position parameter defines the position of the legend
- Google EventBus 使用详解
- Shen Ziyu, nouveau Président de Meizu: M. Huang Zhang, fondateur de Meizu, agira comme conseiller stratégique pour les produits scientifiques et technologiques de Meizu
- Use the word "new" to attract curious people
- 01 、Solr7.3.1 在Win10平台下使用jetty的部署及配置
- Blue Bridge Cup study 2022.7.5 (morning)
- Linked list (simple)
- Leetcode array question brushing notes
- LeetCode_67(二进制求和)
猜你喜欢

魅族新任董事长沈子瑜:创始人黄章先生将作为魅族科技产品战略顾问

魅族新任董事長沈子瑜:創始人黃章先生將作為魅族科技產品戰略顧問
![[South China University of technology] information sharing of postgraduate entrance examination and re examination](/img/a8/41e62a7a8d0a2e901e06c751c30291.jpg)
[South China University of technology] information sharing of postgraduate entrance examination and re examination

Tiflash compiler oriented automatic vectorization acceleration

让秒杀狂欢更从容:大促背后的数据库(下篇)

Shenziyu, the new chairman of Meizu: Mr. Huang Zhang, the founder, will serve as the strategic adviser of Meizu's scientific and technological products
![UE源码阅读[1]---由问题入手UE中的延迟渲染](/img/fa/f33242b01e4da973fa36c2c6f23db6.png)
UE源码阅读[1]---由问题入手UE中的延迟渲染

国富氢能冲刺科创板:拟募资20亿 应收账款3.6亿超营收

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

Zhizhen new energy rushes to the scientific innovation board: the annual revenue is 220million, and SAIC venture capital is the shareholder
随机推荐
Routing in laravel framework
OSI and tcp/ip protocol cluster
TDengine 社区问题双周精选 | 第三期
Implementation process of WSDL and soap calls under PHP5
Oneconnect listed in Hong Kong: with a market value of HK $6.3 billion, ye Wangchun said that he was honest and trustworthy, and long-term success
Etcd database source code analysis -- rawnode simple package
R Language ggplot2 Visualization: visualize linegraph, using Legend in Theme function. Paramètre de position emplacement de la légende personnalisée
UE源码阅读[1]---由问题入手UE中的延迟渲染
Guofu hydrogen energy rushes to the scientific and Technological Innovation Board: it plans to raise 2billion yuan, and 360million yuan of accounts receivable exceed the revenue
Why do I support bat to dismantle "AI research institute"
Detailed explanation of IP address and preparation of DOS basic commands and batch processing
Deep copy is hard
Current situation, trend and view of neural network Internet of things in the future
Blue Bridge Cup study 2022.7.5 (morning)
Use the word "new" to attract curious people
Some ideas about Apache mesos
金融壹賬通香港上市:市值63億港元 葉望春稱守正篤實,久久為功
物联网应用技术专业是属于什么类
Shenziyu, the new chairman of Meizu: Mr. Huang Zhang, the founder, will serve as the strategic adviser of Meizu's scientific and technological products
Hongmeng fourth training