当前位置:网站首页>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 )
![]()
边栏推荐
- Requset + BS4 crawling shell listings
- 展现强大。这样手机就不会难前进
- Tdengine biweekly selection of community issues | phase III
- R语言使用原生包(基础导入包、graphics)中的boxplot函数可视化箱图(box plot)
- 神经网络物联网未来现状和趋势及看法
- TDengine 社区问题双周精选 | 第三期
- R语言ggplot2可视化密度图:按照分组可视化密度图、自定义配置geom_density函数中的alpha参数设置图像透明度(防止多条密度曲线互相遮挡)
- 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
- VC development of non MFC program memory leak tracking code
- Linux下mysql数据库安装教程
猜你喜欢

如何深入理解“有限状态机”的设计思想?

Financial one account Hong Kong listed: market value of 6.3 billion HK $Ye wangchun said to be Keeping true and true, long - term work

Embedded software architecture design - message interaction

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

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

TiCDC 6.0原理之Sorter演进

What are the advantages and characteristics of SAS interface

LeetCode_2(两数相加)

TiFlash 源码解读(四) | TiFlash DDL 模块设计及实现分析

神经网络物联网未来现状和趋势及看法
随机推荐
[machine learning notes] several methods of splitting data into training sets and test sets
UE source code reading [1]--- starting with problems delayed rendering in UE
几款分布式数据库的对比
Why do I support bat to dismantle "AI research institute"
LeetCode_3(无重复字符的最长子串)
2022建筑焊工(建筑特殊工种)特种作业证考试题库及在线模拟考试
What is the future development trend of neural network Internet of things
R语言ggplot2可视化:可视化折线图、使用theme函数中的legend.position参数自定义图例的位置
MySQL user-defined function ID number to age (supports 15 / 18 digit ID card)
物联网应用技术专业是属于什么类
[buuctf.reverse] 152-154
清大科越冲刺科创板:年营收2亿 拟募资7.5亿
链表(简单)
用“新”字来吸引好奇的人群
展现强大。这样手机就不会难前进
Linux下mysql数据库安装教程
Enjoy what you want. Zhichuang future
-Web direction attack and defense world
[machine learning notes] how to solve over fitting and under fitting
SAS接口有什么优势特点