我在Windows 10上使用Postman本机应用程序,并且正在努力捕获https请求。 Postman's Documentation适用于Mac,而非Windows。
特别是,我正在开发一个Web应用程序,该应用程序在登录时创建会话cookie,需要包含在大多数请求中才能获得授权。当我使用Chrome应用程序时,Postman Interceptor实现了这一点(见https://stackoverflow.com/a/32436131/3816779)。
这是我到目前为止所尝试的内容:
这允许在Postman中捕获http请求
但是当尝试连接到https网站时,我收到错误
如果有帮助,这是我的邮递员设置
更新我最终切换回Chrome应用,该应用使用“拦截器”代替“代理服务器”来捕获流量。
答案 0 :(得分:1)
使用谷歌浏览器我不知道如何解决这个问题。但您可以使用打开网页,例如IE ..
编辑: 或者,您可以使用参数--ignore-certificate-errors启动Google Chrome,以忽略错误消息。
答案 1 :(得分:1)
不幸的是,根据官方文档,在某些情况下,使用postman本地应用程序捕获https请求是不可能的:Capturing HTTP requests
注意:对于Postman原生应用,如果网站启用了HSTS,则无法通过HTTPS进行请求捕获。大多数网站都有这个检查。
答案 2 :(得分:1)
答案 3 :(得分:0)
答案 4 :(得分:0)
Postman 的代理现在支持 HTTPS 流量 - https://blog.postman.com/postmans-proxy-now-fully-supports-https-endpoints/
安装 Postman 为您的安装生成的 CA 证书后,捕获 HTTPS 请求应该是无缝的。
免责声明:我在 Postman 工作