Here is a task. There is Android application which uses some REST API over HTTP. This API is in refactoring phase and sometimes fails on random calls. Through application its not possible to understand the real reason. I need to intercept calls and see the details. How to do it with less blood? I am using Mac
Here is the solution. Both devices (Android and Mac) should be connected to the same Wi-Fi spot.
First go to your Android Wifi connection settings and configure proxy server
Put IP address of you Mac and port for its default value 8080.
Download a man-in-middle http proxy called mitmproxy (https://mitmproxy.org/). There are precompiled binaries for MacOS. Its console application with nice UI for capturing all HTTP requests, looking into details of request/response headers and body. It even can tamper the data.
By default port is 8080, so just run it on console.
Here is a full features list