如何使用Windows 10使用Postman本机应用程序捕获https请求?

时间:2016-12-28 17:26:48

标签: https proxy windows-10 postman

我在Windows 10上使用Postman本机应用程序,并且正在努力捕获https请求。 Postman's Documentation适用于Mac,而非Windows。

特别是,我正在开发一个Web应用程序,该应用程序在登录时创建会话cookie,需要包含在大多数请求中才能获得授权。当我使用Chrome应用程序时,Postman Interceptor实现了这一点(见https://stackoverflow.com/a/32436131/3816779)。

这是我到目前为止所尝试的内容:

        
  1.         使用端口5555打开邮递员中的代理服务器         Postman proxy configuration     
  2.     
  3.         配置窗口通过Postman的代理服务器发送http和https请求(127.0.0.1:5555)         Windows proxy configuration     
  4. 这允许在Postman中捕获http请求 Http requests captured in History Tab

    但是当尝试连接到https网站时,我收到错误 Error with https connection in Chrome

    如果有帮助,这是我的邮递员设置 Postman general settings Postman certificates settings

    更新我最终切换回Chrome应用,该应用使用“拦截器”代替“代理服务器”来捕获流量。

5 个答案:

答案 0 :(得分:1)

使用谷歌浏览器我不知道如何解决这个问题。但您可以使用打开网页,例如IE ..

编辑: 或者,您可以使用参数--ignore-certificate-errors启动Google Chrome,以忽略错误消息。

答案 1 :(得分:1)

不幸的是,根据官方文档,在某些情况下,使用postman本地应用程序捕获https请求是不可能的:Capturing HTTP requests

  

注意:对于Postman原生应用,如果网站启用了HSTS,则无法通过HTTPS进行请求捕获。大多数网站都有这个检查。

答案 2 :(得分:1)

只需检查设置中的HTTPS即可为您工作

enter image description here

答案 3 :(得分:0)

Postman Interceptor可用于支持以下两个功能的Postman本机应用程序:

1。捕获请求
2。同步cookie

了解更多here

答案 4 :(得分:0)

Postman 的代理现在支持 HTTPS 流量 - https://blog.postman.com/postmans-proxy-now-fully-supports-https-endpoints/

安装 Postman 为您的安装生成的 CA 证书后,捕获 HTTPS 请求应该是无缝的。

免责声明:我在 Postman 工作