61

Ever since I upgraded to Postman 0.9.6 I can't replicate user sessions because chrome doesn't allow postman to get user cookies. However, they have decided to "work around" this issue by created another plugin called Postman Interceptor that routes your postman request and grabs the user cookies. They wrote a blog post about this wonderful tool here: http://blog.getpostman.com/index.php/2014/02/11/postman-v0-9-6-access-cookies-and-restricted-headers-plus-better-testing/

However, I can't seem to figure out how to get this thing to work. I have been trying for an hour now, and it still won't see my request as a logged in user

user2158382
  • 4,430
  • 12
  • 55
  • 97
  • Can you please share your webrequest with us? – hmrc87 Aug 21 '15 at 14:01
  • 1
    Postman Chrome app has been *deprecated* in the favor of native apps. So it is *better* to go for native app (in place of Chrome apps) which has direct support for intercepting cookies as mentioned in [this](https://stackoverflow.com/a/47692862/465053) post. You will not require additional plugins like interceptor to check cookies when you use native apps. – RBT Dec 07 '17 at 10:36

10 Answers10

75

This worked for me:

  1. Install Postman
  2. Install the Interceptor
  3. Activate the Interceptor by toggling the switch:
    enter image description here
  4. Activate the Interceptor in Postman by clicking on the "Capture requests" Button on the footer (has a satellite icon)
    Capture button
Dmitry Shvedov
  • 3,169
  • 4
  • 39
  • 51
nozzleman
  • 9,529
  • 4
  • 37
  • 58
  • 3
    After following the above 4 steps, when you request a url in chrome, you can see your request history in the Postman history tab including request headers. – ahyong Aug 07 '17 at 06:31
  • 4
    I don't see the 'satellite' icon... any ideas? – Attie Sep 21 '17 at 12:00
  • nope, maybe you are looking at the wrong place? I just installed it freshly and i can see it in the app – nozzleman Sep 21 '17 at 12:10
  • Huh... do I need to create an account / login? It definitely wasn't there... I'll try more tomorrow. – Attie Sep 21 '17 at 21:33
  • You can proceed to the app without loggin in, the link is pretty tiny though, compared to the login options ;) – nozzleman Sep 22 '17 at 06:05
  • 6
    I think my mistake was running the standalone 'Postman' application, rather than the Chrome App... *sigh* thanks! – Attie Sep 22 '17 at 20:15
  • if you want to add the User-Agent header for instance you don't have to turn on the interceptor in Chrome. It's enough with installing the extension and turning on the interceptor in the Postman client. Regards! – Nahuel Barrios Oct 18 '17 at 21:38
29

To save someone having to dig through all the comments on related questions, here's a quick overview of the state of Postman in 2018:

Standalone Postman (Current)

If you have a satellite dish icon you are using standalone Postman:

postman standalone screenshot

Postman Interceptor does not appear to work with the standalone Postman (as of January 2018).

When you turn the satellite dish on, you are starting a proxy (default port: 5555). If you update your browser and/or OS proxy settings to point to localhost:5555, the requests made through the proxy will show up in Postman, similar to how it worked with the old Interceptor.

You can read more about this feature here.

Postman Chrome App (Deprecated)

If you have a weird satellite thing icon you are using the old Chrome App:

postman chrome app screenshot

This should work with the interceptor. See the instructions in nozzleman's answer if you are having trouble getting it to work.

tl;dr You need to use the Postman Chrome App if you want to use the Interceptor extension.

Michael Kropat
  • 14,557
  • 12
  • 70
  • 91
  • Thank you for the answer! I was having issues with the standalone app. I notice the difference in icons. I couldn't find any info in the documentation. I just downloaded the Chrome App version of Interceptor and it displays the traffic in the History window! – zooropa Mar 22 '18 at 20:55
  • I tried the stand alone app a few times but could never figure out how to intercept the ajax traffic from my client side web app (or any traffic really) until today with the help of this answer. Thank you. FYI, there is some documentation of the feature now. Hadn't been able to find it before today. https://www.getpostman.com/docs/v6/postman/sending_api_requests/capturing_http_requests – shanemgrey Aug 29 '18 at 22:12
  • Unfortunately, using Chrome on MacOS at least, it's necessary to proxy ALL HTTP and/or HTTPS traffic to capture any of it. That's a lot of trust to be putting in an app installed from binary. There is a work around described here. https://apple.stackexchange.com/questions/244711/change-proxy-settings-for-chrome-and-not-for-entire-operating-system Or you can just use a different browser like Firefox which has the ability to do manual proxy config instead of using system settings. – shanemgrey Aug 29 '18 at 22:28
  • Thanks @shanemgrey. I updated the answer to link to the proxy documentation. – Michael Kropat Aug 30 '18 at 13:06
  • 1
    How do we set the proxy on macos? I tried http, https and socks but none worked. I get invalid certificate errors. – chovy Jan 21 '19 at 21:50
13

Make sure to turn the Interceptor on in chrome and proxy on in Postman. Also ensure install correct extension! Oddly, it seems there are 2 postman Interceptor:

  1. Interceptor 1 <- Same name but not from getpostman.com
  2. Interceptor 2 <- from correct source

Then it should work

Ali Nikneshan
  • 3,500
  • 27
  • 39
4

The issue for me was that I had multiple Chrome profiles, and requests with a non-main profile wasn't working, even if the extension was enabled. Once I switched to the primary profile and ensured the extension was enabled there, it started intercepting properly.

timetofly
  • 2,957
  • 6
  • 36
  • 76
  • I think this might be affecting me... but I've installed the extension on both profiles, and it's still not working. Any ideas? – Attie Sep 21 '17 at 11:59
  • @Attie did you try closing the non-main profile window and visit the website with the main profile (to share those cookies)? Try quitting chrome and starting up with just the main profile. Ensure it's enabled properly as the main answer explains: https://stackoverflow.com/a/41564921/371699 – timetofly Sep 21 '17 at 18:22
  • Thanks, I did many of those things. Will try again tomorrow to be sure. – Attie Sep 21 '17 at 21:34
  • 1
    This is ridiculous but it was my problem. – Brandon Oct 10 '17 at 18:44
3

For native app POSTMAN(windows, macOS or linux) make sure you have installed the INTERCEPTOR Bridge:

https://community.getpostman.com/t/interceptor-integration-for-postman-native-apps/5290

Sabri Aziri
  • 4,084
  • 5
  • 30
  • 45
1

Postman Interceptor integration is now available for Postman Native App ( > v7.14.0).

  • Download Interceptor from Chrome Web Store. If you already have the extension, kindly ensure that the version is v0.2.26 or later.
  • Navigate to the Postman app and click the satellite icon in the upper-right corner to Capture requests and cookies with Postman. Install Interceptor Bridge either from Cookies tab or Requests tab with source toggled to Interceptor.

Postman App - Install Interceptor Bridge Postman App - Install Interceptor Bridge

  • Confirm Interceptor is ready to use by checking that the INTERCEPTOR CONNECTED status is green. You can now capture browser requests and sync browser cookies directly into Postman App. Learn more here.

    Postman Interceptor

  • Kindly note that you might need to restart Chrome before you see INTERCEPTOR CONNECTED status if you're using Postman App for Windows

Note: If you face any issues while installing Interceptor Bridge, please check the troubleshooting doc. You can find the relevant information regarding Interceptor here.

0

There are two ways, and both works:

1) postman chrome app + postman interceptor plugin

Deprecated but more convenient, just a few clicks are needed.

2) postman native app

Officially recommended by not very user friendly. You have to manually change the browser/system proxy setting.

duleshi
  • 1,966
  • 2
  • 21
  • 32
0

As some of them mentioned here Postman Chrome app is deprecated, you can not use it to intercept your API requests anymore. Instead, Postman has released a beta version "Postman Canary", which works better.

Please follow these links to set up the canary and interceptor. https://community.getpostman.com/t/interceptor-integration-for-postman-native-apps/5290

Vinay Hosamane
  • 346
  • 1
  • 5
  • 15
0

Postman released Interceptor support for the packaged app for Mac / Windows / Linux in v7.2.2 in June 2019.

7.2.2: Added support for cookie syncing via the Interceptor

More about that here since the docs aren't updated yet: https://community.getpostman.com/t/interceptor-integration-for-postman-native-apps/5290

J.Lin
  • 1,120
  • 9
  • 11
0

I was able to work without Interceptor,just by disabling SSL

I was using older version of postman [Postman Chrome App (Deprecated)] in which I had to use interceptor,Basically I wanted to pass cookies as apart of Header. Now when I tried to use New Standalone/Desktop Postman (Current tool),I got below error enter image description here

To solve this error I just had to "OFF" SSL certificate verification. enter image description here

Madhusudhan R
  • 301
  • 1
  • 5
  • 17