菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
24
0

postman

原创
05/13 14:22
阅读数 79852

PostMan调试技巧

https://github.com/postmanlabs/postman-app-support/issues/3127

在view菜单中,show postman console

 

所有request都不工作,但是其他软件是可以的

https://github.com/postmanlabs/postman-app-support/issues/5114

There is no problem with keeping them, they just need to be complete with the protocol. For e.g. instead of http_proxy=localhost:8080 you should have http_proxy=http://localhost:8080

在环境变量里面配置的http_proxy必须要以http://开头

 

其他方案

https://github.com/postmanlabs/postman-app-support/issues/4045

This is a known issue/feature request (a setting to disable proxy for env vars also)
For now, there are 3 workarounds

  1. You can remove the http_proxy env variable. Other non-terminal apps should continue to work using the proxy from operating system.
  2. If the above is not possible, then you can also set another env var NO_PROXY to the URL(s) that you wish should not go through the proxy
  3. You can also create a .bat file which un-sets the http_proxy variable and opens Postman app
set HTTP_PROXY=
set http_proxy=
set HTTPS_PROXY=
set https_proxy=
start Postman.exe

 

配置了http_proxy代理为http://之后,对https的请求不生效

需要关闭ssl验证

Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General

 

postman相比fiddler的优点

注册账号之后,可以在不同的机器上同步数据

可以新建collection,并且将测试通过的request保存下来。然后collection是可以进行共享的。

 

 

bypass proxy localhost不生效

https://github.com/postmanlabs/postman-app-support/issues/3942

As I cannot remove the HTTP_PROXY and HTTPS_PROXY environment variables for other use, I used another workaround which is solving my problem: set"NO_PROXY" environment variable:

SET NO_PROXY=localhost,127.0.0.1

在环境变量中,新加一个NO_PROXY,并设置对应的值

 

基本操作

postman以web浏览器的方式预览html

在response那边选中Body,然后preview

 

复制一个request

 

postman将url设置为环境变量

https://www.cnblogs.com/Chilam007/p/10639773.html

 

发表评论

0/200
24 点赞
0 评论
收藏