If you are using APIs to build client-side applications - mobile apps, websites or desktop applications - you might want to see the actual HTTP request traffic that is being sent and received in the application. In some cases, you might discover APIs that are not even documented. Postman gives you tools to see and capture this network traffic easily. You can use the built-in proxy in the Postman native apps or use the Interceptor extension for the Postman Chrome app.
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.
Postman has a proxy in the Postman app that captures the HTTP request.
Similar to the Interceptor Chrome extension, the Postman app proxy also INTERCEPTS and captures your requests. In this scenario, the Postman app is the proxy, and you can inspect HTTP communication going out from your phone like in the following example, and log all network requests under the History tab of the sidebar.
In this tutorial, we will use Postman's proxy feature to inspect HTTP communication going out from your phone. To get started, make sure your computer and mobile are connected to the same local wireless network.
Open the PROXY SETTINGS modal in the Postman app (MacOS) by clicking the icon in the header toolbar.
Keep a note of the port mentioned in the proxy settings. In this case, let's keep it at the default port
5555. Set the target to "History". This will cause all your requests to be captured and stored in the History sidebar panel.
On OS X, the computer's IP address can be found in System Preferences > Network. The IP address of your system will be something like the example here
Open the wireless settings of your mobile device and update the configuration of the wireless connection to use HTTP Proxy. Set the IP address with the IP you retrieved from your computer in the second step. Set the port with the port you established in Postman in Step 1.
Set the proxy IP address of your device (an iPhone in this example) to the IP address you obtained from your system and port
You are all set! Head over to the Postman app, and you will start seeing the network calls listed under the History tab of the sidebar. Open your device's web browser or your application and you will start seeing HTTP traffic passing through the app or the browser.
The broader development community has published some useful tutorials for setting up a proxy server on various operating systems.