Postman+Postman interceptor使用
来源:互联网 发布:淘宝宝贝监管期多久 编辑:程序博客网 时间:2024/05/28 03:03
做后端开发避免不了进行接口调试,但是一般的项目都是前后端分离的,如果把前端代码下到本地,较为费事,这个时候就需要一个可以进行接口调试的工具。Postman就是一个不错的选择。
Postman是什么?
Postman是一种网页调试与发送网页http请求的chrome插件。我们可以用来很方便的模拟get或者post或者其他方式的请求来调试接口。
怎样使用?
使用Postman如果通过自己拼接url,自己造数据,是非常麻烦的。因此选择Postman+Postman interceptor,使用Postman interceptor可以拦截到网页请求,同时传到postman的history列表中,然后我们只需要在postman中修改一下url就可以直接send了。
安装:
首先到文末的链接处下载压缩文件。在本地解压
然后chrome浏览器,更多工具->扩展程序->加载已解压的扩展程序,然后选择刚刚解压文件就可以了。
使用:
浏览器中,interceptor要打开(图1),然后postman中的interceptor选项也要打开(图2)就可以使用了
左:图1,右:图2
遇坑:
postman和postman interceptor版本一定要相同。(很重要==||)
可能遇到图1这种问题。这个是因为图2红框中,文件名前边多了一个"_"只要去掉就好了。(在文末链接的压缩文件中不会遇到,我已经改了~~)
左:图1,右:图2
下载文件url:http://download.csdn.net/download/believe__dream/10146850
阅读全文
1 0
- Postman+Postman interceptor使用
- postman 使用
- Postman使用
- postman使用
- Postman使用
- postman 使用
- POSTman使用
- postman使用
- Postman
- PostMan
- Postman
- postman
- postman
- Postman
- PostMan
- postman
- postman
- PostMan
- 【HYSBZ2002】LCT模板 Bounce 弹飞绵羊(一般题)
- 冒泡排序
- mybatis配置的常见错误
- 分布式深度学习框架TensorFlowOnSpark
- Yii2 view 层显示值
- Postman+Postman interceptor使用
- ardupilot Uorb学习
- 数据结构实验之图论四:迷宫探索
- 文章标题
- Environment variable ORACLE_UNQNAME not defined错误解决
- Robotframework 调XML库解析xml文件时只支持utf-8编码格式的问题
- Webpack 3.0 的学习笔记(3)
- DOM事件学习
- JS获取图片的原始尺寸和上传图片大小