How to use Postman Interceptor

谁说胖子不能爱 提交于 2019-11-27 18:56:17

This worked for me:

  1. Install Postman
  2. Install the Interceptor
  3. Activate the Interceptor by toggling the switch:

  4. Activate the Interceptor in Postman by clicking on the Interceptor Button on the top right (looks like a sattelite)

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 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:

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.

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

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.

Im on OSX 10.10.4 and I had to follow these instructions to allow a proxy server in order for the interceptor to work:

https://www.getpostman.com/docs/capture_native

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.

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

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

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

To solve this error I just had to "OFF" SSL certificate verification.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!