33

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.

Community
  • 1
  • 1
Joe Borysko
  • 493
  • 1
  • 7
  • 16

5 Answers5

5

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.

ahyong
  • 189
  • 2
  • 6
3

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

Osiris
  • 4,195
  • 2
  • 22
  • 52
1

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.

Lukáš Kmoch
  • 1,239
  • 11
  • 11
  • The question's referring to the native app in Windows, as opposed to the chrome app. Haven't used postman for this in a while, so not sure if this is still an issue with the current version. – Joe Borysko Nov 11 '17 at 18:40
  • 1
    It is still an issue, I tried it few weeks ago. And i know the question is referring to the native app but with nativ app you still need to use web browser to open the page and the issue is only with Google Chrome – Lukáš Kmoch Dec 08 '17 at 08:09
  • Oops, I misinterpreted your answer. Starting Chrome with --ignore-certificate-errors prevented the error messages from showing up, and the requests appeared in Postman history. If running chrome with arguments is new to you like it was for me, here's some instructions https://pastebin.com/raw/MDT1RbF2, quoted from here https://www.technipages.com/google-chrome-bypass-your-connection-is-not-private-message. – Joe Borysko Apr 04 '18 at 19:37
0

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

1. Capturing requests
2. Syncing cookies

Learn more here.

-1

Just check HTTPS in setting and will work for you

enter image description here

Aman Sharma
  • 311
  • 1
  • 8
  • 22
  • 1
    It looks like that tab is a new feature that addresses the problem, awesome. I frankly don't feel like putting in the effort to test out this solution though (I no longer need to use that part of postman), so I'll unnaccept the accepted answer and let the crowd take over from here. – Joe Borysko Aug 04 '18 at 20:33
  • 4
    That is if you are in a proxy network... no for config the postman as proxy. – JuliSmz Apr 24 '19 at 16:17
  • 1
    This setting is for using Postman _behind a proxy_ **not to** configure Postman as Proxy to intercept requests. – Francisco Quintero Jul 10 '19 at 20:32