Postman Interceptor and the postman can not change the id still use to download the same version of the postman and interceptor plug-in from here

1.postman installation:

chrome: // extensions / open, drag the downloaded postman plug inside it.

2.Postman interceptor installation:

chrome: // extensions / Open, the downloaded Postman interceptor plug-drag inside it.

3.Postman interceptor installation chrome upper right corner of the browser will display an icon, click it to open.

4. Open the postman, open interceptor plug-in

5.chrome browser to log test account, then the postman to test relies logged interfaces do not need to verify, because the interceptor has been automatically logged in the browser to synchronize postman friends.

 

Problems encountered in the process:

1. Install the Postman interceptor, then install the postman, the result has been a transmission request in the loading state.

Solution: Uninstall the two plug-ins, be sure to install the postman, then install Postman interceptor

2. installation interface has been tested in a loading state, which may be caused by inconsistent postman and interceptor version of this version is available to be consistent.

The solution: pro-test available here attach supporting postman and interceptor installation package.

Links: https://pan.baidu.com/s/1eofcGmsfrAAnK8oZr-WW5Q Password: 85ia

 

 

 

A, Postman Background

Network development or debug the user program or a program page B / S mode when the need some way to keep track of the page request, the user can use the network monitoring tools of some other web such as the famous Firebug debugging tools. Today, this web debug tool to tell you not only can debug simple css, simple web basic information html, scripts, etc., it can send almost any type of HTTP request! Postman network sending HTTP requests can be said that a representative of product Chrome plug-in class products.

Two, Postman operating environment

postman for different operating systems, Postman Mac, Windows X32, Windows X64, Linux systems, also supports the postman browser extensions, postman chrome applications and so on.

Postman Reference document:

1. Official English documentation
2.chrome plug-finishing postman Chinese tutorial

Three, Postman download and install

1>, postman Download:

1.Postman for MAC

2.Postman for windows X64

3.Postman for windows X86

4.Postman for linux X64

5.Postman for Linux X86

. 2> Postman official website Download:

https://www.getpostman.com/apps

3.Postman installation

postman installation method several points, according to the above we introduce as we are divided into three installation modes introduced:

1, chrome browser postman plug-in installed
1
Plug postman Google browser, so it uses the premise that have installed Google Chrome job on your computer, after the Google browser installed also need Google Web Store in Postman download the required plug-ins to download the plug-in as follows:

 

You can not access the app store google friends can be found here, or download the client version

2.Postman computer client installation
1
1) .macOS install
the application once you download, you can drag the file to the "Applications" folder. Postman Double-click to open the application.

2) .Windows installation
download the installation file
to run the installer
3) Linux installation.
I have not tried, but to find some reference material (friends who are interested can experiment yourself)
Ubuntu installation postman: https://blog.csdn.net/ qianmosolo / article / details / 79353632
install applications on Postman Ubuntu16.04: https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/?utm_source=hootsuite&utm_medium=twitter&utm_campaign=

Four, Postman's basic functions

 

V. Interface request process

1. GET request
GET request: Click Params, input parameters and value, can enter multiple, real-time display on the URL link,
therefore, request header GET request with the request parameters, such as when there is no special statement in the interface document, you can not fill .
. 1
2
. 3

Example response: there will be a request response status code, response time, and in response to the size of the

Example response body: The format of the response can be many, I am here because the request is Baidu, so, the response is html,
under normal circumstances, our custom interface, then the response body json format

 

2. POST request
POST request a: form submission
. 1
2
the illustrated example, the request method is provided, the request URL, the request parameters, the request header is not provided
in my use, request headers are automatically generated according to the form of a request parameter
there is association between the requested format Content-Type header in the request parameters, such as:

 

 


POST request two: json submit
the following figure, when we choose JSON (application / json) will automatically help us set up headers to application / json
here is not the screenshot example, my friends can go to view their own

POST request three: xml submission

POST request Four: binary file submitted


Other means such as a request PUT, DELETE general process and GET, POST almost illustrated here is not

Sixth, management use cases -Collections

POST basic function in a picture where there is generally said about the role of Collections, here we'll elaborate on
1
Collections collections: that is, multiple interfaces request can be put together and manage them. What kind of interface requests can be placed in the same collection?

Here to tell you it can be: a project a Collection, and so easy to find a unified process data.

 


First, create Collections
icon Click the image above with a plus sign, enter Name: "abc", Description: " example of demo", click on the Create button to create a successful Collections.
The second step, in addition request in Collections

All data in the right side of the interface is ready to request, and after verification, click the save button.


After saving the good you can see it here, you can click here to call again later when, convenient and there are wood

 

collections management fine, here we do request packets for different ways
to add subfolders

 


This is the result we are after fine division, is not looking much more organized?


Seven Authentication Authentication
1, Basic Auth

Is the basis of verification, it will be relatively simple and
will direct the user name and password on the Header information request

2、Digest Auth

More complex than the Basic Auth. Generate authorization header with the current fill value. So before generating header to ensure the correctness of the set. If the current header already exists, postman removes the header before.

3、OAuth 1.0

postman's OAuth helper OAuth support lets you sign

1.0-based authentication requests. Do not get OAuth access token, you need to get the API provider. OAuth 1.0 may be provided in a header value or query parameter.

4、OAuth 2.0

postman to get OAuth 2.0 token support and add to the requests.

2018-07-02 update
thank someone brothers valuable advice, timely detection of an error, and I expect my dear friend in the reading process if an error is found, it welcomes comments and suggestions, Thanks again

2018-08-02 update
Postman Interceptor Google Chrome plug-in download resources
https://download.csdn.net/download/fxbin123/10578475

2018-10-26 update
Postman Google Chrome plug-in download resources
https://download.csdn.net/download/fxbin123/10745065
---------------------

Reproduced in: https: //www.cnblogs.com/cjm123/p/10032818.html

1.postman installation:

chrome: // extensions / open, drag the downloaded postman plug inside it.

2.Postman interceptor installation:

chrome: // extensions / Open, the downloaded Postman interceptor plug-drag inside it.

3.Postman interceptor installation chrome upper right corner of the browser will display an icon, click it to open.

4. Open the postman, open interceptor plug-in

5.chrome browser to log test account, then the postman to test relies logged interfaces do not need to verify, because the interceptor has been automatically logged in the browser to synchronize postman friends.

 

Problems encountered in the process:

1. Install the Postman interceptor, then install the postman, the result has been a transmission request in the loading state.

Solution: Uninstall the two plug-ins, be sure to install the postman, then install Postman interceptor

2. installation interface has been tested in a loading state, which may be caused by inconsistent postman and interceptor version of this version is available to be consistent.

The solution: pro-test available here attach supporting postman and interceptor installation package.

Links: https://pan.baidu.com/s/1eofcGmsfrAAnK8oZr-WW5Q Password: 85ia

 

 

 

A, Postman Background

用户在开发或者调试网络程序或者是网页B/S模式的程序的时候是需要一些方法来跟踪网页请求的,用户可以使用一些网络的监视工具比如著名的Firebug等网页调试工具。今天给大家介绍的这款网页调试工具不仅可以调试简单的css、html、脚本等简单的网页基本信息,它还可以发送几乎所有类型的HTTP请求!Postman在发送网络HTTP请求方面可以说是Chrome插件类产品中的代表产品之一。

二、Postman的操作环境

postman适用于不同的操作系统,Postman Mac、Windows X32、Windows X64、Linux系统,还支持postman 浏览器扩展程序、postman chrome应用程序等。

Postman使用参考文档:

1.官方英文文档
2.chrome插件整理的 postman中文使用教程

三、Postman下载安装

1> 、postman下载地址:

1.Postman for MAC

2.Postman for windows X64

3.Postman for windows X86

4.Postman for linux X64

5.Postman for Linux X86

2>. Postman官网下载地址:

https://www.getpostman.com/apps

3.Postman安装

postman的安装方法分好几种,按照我们上文介绍的那样,我们分为三种安装模式介绍:

1、chrome浏览器postman 插件安装
1
postman谷歌浏览器的安装插件,所以说它的使用前提是你的电脑上得安装谷歌浏览器才行,在安装了谷歌浏览器后还需要在谷歌网上应用店中下载所需要的Postman插件,该插件的下载方式如下:

 

不能访问google 应用上商店的朋友 可以 参考这里, 或者下载客户端版本

2.Postman电脑客户端安装
1
1).macOS安装
一旦你下载的应用程序,你可以拖动文件到“应用程序”文件夹。 双击Postman打开应用程序。

2).Windows安装
下载安装文件
运行安装程序
3). Linux安装
我没有试过,但是找了一些参考资料( 有兴趣的朋友可以自行实验)
ubuntu安装postman: https://blog.csdn.net/qianmosolo/article/details/79353632
Ubuntu16.04上安装Postman应用程序: https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/?utm_source=hootsuite&utm_medium=twitter&utm_campaign=

四、Postman的基础功能

 

五、接口请求流程

1. GET 请求
GET请求:点击Params,输入参数及value,可输入多个,即时显示在URL链接上,
所以,GET请求的请求头与请求参数如在接口文档中无特别声明时,可以不填。
1
2
3

响应 示例: 这里会有请求的响应状态码,响应时间,以及响应大小

响应体示例: 响应的格式可以有多种,我这里由于请求的是 百度,so, 响应的是 html ,
一般情况下,我们自定义接口的话是 json格式的响应体

 

2. POST请求
POST请求一:表单提交
1
2
下图示例中设置了请求方法,请求URL,请求参数,但是没有设置请求头
在我的使用过程中,请求头是根据请求参数的形式自动生成的
请求头中的Content-Type与请求参数的格式之间是有关联关系,比如:

 

 


POST请求二:json提交
下图中,当我们选择JSON(application/json) 是会自动帮我们设置 headers 为 application/json
在这里就不截图 举例了,朋友们可以自行去查看

POST请求三:xml提交

POST请求四:二进制文件提交


其它请求方式如PUT,DELETE 大致流程和GET,POST 差不多,这里就不一一举例说明了

六、管理用例—Collections

在POST基础功能那里有一张图片大致说了一下Collections 的作用, 这里我们再详细说明一下
1
Collections集合:也就是将多个接口请求可以放在一起,并管理起来。什么样的接口请求可以放在同一个collection里?

在这里告诉大家可以这样:一个工程一个Collection,这样方便查找及统一处理数据。

 


第一步, 创建Collections
点击上图中的带+号的图标,输入Name:”abc”,Description:”示例demo”,点击Create按钮即创建成功一个Collections.
第二步,在Collections里添加请求

在右侧准备好接口请求的所有数据,并验证后,点击save按钮。


保存好之后就可以在这里看到啦,之后要再次调用时可以点击这里,方便快捷有木有

 

collections 管理精细化, 这里我们针对不同的请求方式做分组
添加子文件夹

 


这是我们精细化划分之后的结果, 是不是看着有条理多了?


七、身份验证Authentication
1、Basic Auth

是基础的验证,所以会比较简单
会直接把用户名、密码的信息放在请求的 Header 中

2、Digest Auth

要比Basic Auth复杂的多。使用当前填写的值生成authorization header。所以在生成header之前要确保设置的正确性。如果当前的header已经存在,postman会移除之前的header。

3、OAuth 1.0

postman的OAuth helper让你签署支持OAuth

1.0基于身份验证的请求。OAuth不用获取access token,你需要去API提供者获取的。OAuth 1.0可以在header或者查询参数中设置value。

4、OAuth 2.0

postman支持获得OAuth 2.0 token并添加到requests中。

2018-07-02 更新
感谢某位兄弟的宝贵意见,及时发现了错误,同时希望其他仁兄在阅读过程中若是发现错误的话,欢迎提出意见与建议,再一次感谢

2018-08-02 更新
Postman Interceptor Google Chrome 插件下载资源
https://download.csdn.net/download/fxbin123/10578475

2018-10-26 更新
Postman Google Chrome 插件下载资源
https://download.csdn.net/download/fxbin123/10745065
---------------------

Guess you like

Origin www.cnblogs.com/hushuning/p/11620356.html