Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I capture https requests with Postman native app using Windows 10?

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:

  1. Turn on the Proxy in Postman with port 5555.
    Postman proxy configuration
  2. Configured windows to send http and https requests through Postman's proxy server (127.0.0.1:5555).
    Windows proxy configuration

This allows http requests to be captured in Postman
Http requests captured in History Tab

But when trying to connect to https sites, I get an error
Error with https connection in Chrome

Here are my Postman settings if that helps.
Postman general settingsPostman certificates settings

Update I ended up switching back to the Chrome App, which uses the "Interceptor" instead of a "Proxy Server" to capture traffic.

like image 665
Joe Borysko Avatar asked Dec 28 '16 17:12

Joe Borysko


People also ask

Does Postman use HTTP or https?

Postman will automatically add http:// to the start of your URL if you don't specify a protocol. You can optionally enter query parameters into the URL field, or you can enter them in the Params tab.


1 Answers

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.

like image 98
ahyong Avatar answered Sep 17 '22 19:09

ahyong