Follow these steps if you're on macOS (Postman v10.17 or later) or Windows (Postman v10.18 or later). If you're on Linux (all Postman versions), macOS (Postman v10.16 or earlier), or Windows (Postman v10.17 or earlier), go to Capturing HTTP requests instead. To check which version of Postman you're using, select the settings icon in the header and select Settings > About.
If you are using APIs to build client-side applications like mobile apps, websites, or desktop applications, you may want to inspect the HTTP and HTTPS request traffic that's being sent and received in the application. Sometimes you might discover APIs that aren't even documented. You can capture network traffic, including requests, responses, and cookies, using the proxy that's built into Postman.
The Postman desktop app has a built-in proxy that can capture HTTP and HTTPS traffic. Here's how it works:
Similar to the Interceptor extension, the Postman proxy intercepts and captures your requests. It can also capture responses and cookies.
Starting the Postman proxy begins a proxy session, which is a time-bound period of traffic capture. You can pause, restart, and stop a proxy session, then later start another one. Each session is logged in the History tab and displays the total session time, a traffic overview, and all traffic captured. You can also send requests and responses to a collection and save cookies to the Postman cookie jar.
In the steps below, you'll use the Postman proxy to inspect HTTP and HTTPS communication going to and from your computer and phone. To get started, make sure your computer and phone are connected to the same local wireless network.
You can't use the Postman proxy with the Postman web app. Make sure you've installed the Postman desktop app.
5559
. Make a note of the port number, as you will use it later when configuring clients.The first time you start a proxy session, Postman will install the Postman Proxy CA certificate on your computer. If prompted, enter your computer password to install the certificate. Installing the certificate enables the Postman proxy to capture secure HTTPS traffic sent from browsers and other client apps on your computer.
You can't have more than one proxy or Interceptor session running at the same time.
When you start the proxy session, the Postman proxy begins capturing traffic sent from your computer. After you start a proxy session, you can pause, restart, or stop it. You can also select what traffic you want to capture during the session.
To control an active proxy session, select Proxy active in the footer to display the proxy session tab. (If the proxy session is paused, select Start proxy in the footer.) The proxy tab shows the total duration of the session and the size of the data captured.
With the proxy active, try opening a web browser and navigating to a website, or open an app that communicates with a server. Requests appear on the proxy session tab as they're captured.
From the proxy session tab, you can take the following actions:
Select Pause to temporarily stop capturing traffic, then select Resume when you're ready to begin capturing traffic again. When you're finished capturing traffic, select Stop to end the proxy session.
Select Save responses for requests to save each request's response along with the captured request.
Select Capture cookies if you want to capture cookies along with requests during the proxy session.
You can also capture cookies and sync them to Postman without starting a proxy session. Learn more about syncing cookies.
Select the sort icon in the column headers to sort the results in ascending or descending order.
Select the filter icons in the column headers to limit the requests and responses that are captured while the session is active. Postman will capture requests that match the selected criteria and will ignore requests that don't match. You can change the filters at any time during the session:
Status - Limit captured requests to the selected status codes.
Method - Limit captured requests to the selected methods.
URL - Limit captured requests to URLs that match the specified criteria. You can specify text that URLs must contain and can't contain, and you can use regular expressions. Select Enter to apply the specified filters. To remove a filter, select the remove icon next to the filter.
Type - Limit captured requests to the selected content types.
In responses with a
content-type
that has images, audio, or video, the content is intercepted but not captured. The information captured is response headers, time taken, and the status code.
While your proxy session is running, the proxy session tab shows captured traffic as you use a browser or apps on a client device. You can view details about each captured request including the status, method, URL, type, response size, response time, and time stamp.
You can view and work with the proxy session results while the session is active or paused, or after you stop the session.
When you're finished capturing traffic, select Stop to end the proxy session. To view the proxy session again later, select History in the sidebar, then select the proxy session. You can also select View Past Sessions on the proxy session tab.
The Overview tab shows summary graphs of traffic captured in the proxy session. Use the dropdown menu to group requests by method, domain, content type, or status code. The header also displays the session start time, session size, duration, and source.
To filter the list of requests, use the filter icons in the column headers. Postman shows requests that match the selected filters and hides requests that don't match.
To save captured requests to a collection, do the following:
You can use the Postman proxy to capture traffic from a client device such as a phone.
Start a new proxy session. Select Start proxy in the Postman footer, then select Start Proxy Session.
Find the local IP address of the computer running the proxy:
Open the wireless settings of your client device and update the configuration of the network connection to use an HTTP Proxy. For example, in iOS:
Open a web browser or app on the device, then view captured traffic on the proxy session tab in Postman.
To capture secure HTTPS traffic, you need to install the
postman-proxy-ca.crt
certificate on the client device. To learn how to install the certificate on your device, go to Capturing HTTPS traffic.
The broader development community has published some useful tutorials for setting up a proxy server on various operating systems:
Last modified: 2023/10/16
Additional resources
Videos
Blog posts