如何使用Windows 10通过Postman本地应用捕获HTTP请求? [英] How do I capture https requests with Postman native app using Windows 10?
问题描述
我正在Windows 10上使用Postman本机应用程序,并且正在尝试捕获https请求.
注意:对于Postman本机应用程序,如果网站启用了HSTS,则无法通过HTTPS捕获请求.大多数网站都已对此检查到位.
I am using the Postman native app on Windows 10 and am struggling with trying to capture https requests. Postman's Documentation for this is for Mac and not Windows.
In particular, I am working on a web application that creates a session cookie upon login that needs to be included in most requests in order to be authorized. When I was using the Chrome App, Postman Interceptor achieved this (see https://stackoverflow.com/a/32436131/3816779).
Here's what I've tried so far:
-
Turn on the Proxy in Postman with port 5555.
-
Configured windows to send http and https requests through Postman's proxy server (127.0.0.1:5555).
This allows http requests to be captured in Postman
But when trying to connect to https sites, I get an error
Here are my Postman settings if that helps.
Update I ended up switching back to the Chrome App, which uses the "Interceptor" instead of a "Proxy Server" to capture traffic.
Unfortunately, capture https requests with postman native app is impossible in some case according to the official doc: Capturing HTTP requests
Note: for the Postman native apps, request captures over HTTPS will not work if the website has HSTS enabled. Most websites have this check in place.
这篇关于如何使用Windows 10通过Postman本地应用捕获HTTP请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!