Joe Borysko
Joe Borysko

Reputation: 503

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 settings Postman certificates settings

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

Upvotes: 33

Views: 35415

Answers (5)

Osiris
Osiris

Reputation: 4185

Postman's proxy now supports HTTPS traffic - https://blog.postman.com/postmans-proxy-now-fully-supports-https-endpoints/

Once you install a CA certificate that Postman generates for your installation, capturing HTTPS requests should be seamless.

Disclaimer: I work at Postman

Upvotes: 4

Vinit Shahdeo
Vinit Shahdeo

Reputation: 91

Postman Interceptor is available for Postman native apps which supports both features:

1. Capturing requests
2. Syncing cookies

Learn more here.

Upvotes: 1

Aman Sharma
Aman Sharma

Reputation: 321

Just check HTTPS in setting and will work for you

enter image description here

Upvotes: -1

ahyong
ahyong

Reputation: 309

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.

Upvotes: 7

Lukáš Kmoch
Lukáš Kmoch

Reputation: 1359

With Google Chrome i don't know how to fix the issue. But you can use to open the web page for example IE..

EDIT: Or MAYBE you can start Google Chrome with parameter --ignore-certificate-errors to ignore the error message.

Upvotes: 2

Related Questions