Reputation: 13745
I'd like to analyze what raw requests (maybe HTTP requests) sent by an app, for example, the Grammarly app. Could anybody show me how to do it? Thanks.
Upvotes: 6
Views: 16766
Reputation: 11
So, there are a couple of ways you can intercept the network traffic. You can inspect network traffic using the terminal by following:
This blog has detailed steps on multiple ways you can inspect the network on Mac.
You can also use Requestly desktop app to inspect the network traffic on Mac.
Upvotes: 0
Reputation: 471
Basically, you might need to use a man-in-the-middle app like Wireshark, Fiddler, Charles. Here I take an example of how I use Proxyman (the one I'm currently using now) to intercept HTTP requests/ responses:
- Step 1: Download and Setup Proxyman to override your Network Proxy. Once you've done, all HTTPs coming from/to you Mac should be captured like this
- Step 2: Here I want to see the response content of Product Hunt so I use Command F to search for specific URLs
- Step 3: As you can see, if I click a request/ response, it is still encrypted so I need to enable SSL Proxying to see the content. Just click button "Enable only this domain" or "Enable all domains from Product Hunt" and re-sent the request.
Tips: If you Right click the request --> choose Pin this domain, that URL would be isolated and then Proxyman would automatically enable SSL Proxying for you
You even can manipulate the requests/ responses using Advanced tools like Breakpoint, Map Local,... Hope it helps! (:
Upvotes: 9