postman安装及使用



 postMan使用手册:

1.postman安装:下载postman-4.1.2压缩包,并解压

2.Postman-Interceptor安装:下载Postman-Interceptor_v0.2.20压缩包,并解压

3:在chrome浏览器中输入:chrome://extensions/  选择:'加载已解压的扩展程序',在本机目录中选择已解压的postman安装

4:在chrome浏览器中输入:chrome://extensions/  选择:'加载已解压的扩展程序',在本机目录中选择已解压的Postman-Interceptor安装

5:在postman的安装包的requester.js中查找以下文字:

 key: 'handleInterceptorInstall',

   value: function handleInterceptorInstall() {

     pm.app.openExternalLink('https://chrome.google.com/webstore/detail/postman-interceptor/bidgpakghehmhngapbljdgkampgbjphh');

 

使用浏览器中Postman Interceptor的id替换上面的/postman-interceptor/后面的id。

 

查找:window.postman_interceptor_id = ('bidgpakghehmhngapbljdgkampgbjphh'); 使用postman Interceptor在浏览器中的id替换上述id值

6:在postman的安装包中的runner.js中查找以下文字:

window.postman_interceptor_id = ('bidgpakghehmhngapbljdgkampgbjphh');

并使用浏览器中Postman Interceptor的id替换上述id。

7:postman使用

在chrome中输入chrome://apps 选择chrome,选中Intercepter,开启cookie拦截

POST请求:可以在Header中配置:

Cookie,值如下xxxx_token=xxxxxx8bc1

Content-Type ,值如下:application/json

在Body中选择raw格式,选择application/json格式,即可发送json数据。

猜你喜欢

转载自cc-weige.iteye.com/blog/2379634
今日推荐