Android : Capturing HTTP Requests with non-rooted android device
Solution 1:
You could install Charles - an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet - on your PC or MAC.
Config steps:
- Let your phone and PC or MAC in a same LAN
- Launch Charles which you installed (default proxy port is 8888)
- Setup your phone's wifi configuration: set the ip of delegate to your PC or MAC's ip, port of delegate to 8888
- Lauch your app in your phone. And monitor http requests on Charles.
Solution 2:
There is many ways to do that but one of them is fiddler
Fiddler Configuration
- Go to options
- In HTTPS tab, enable Capture HTTPS Connects and Decrypt HTTPS traffic
- In Connections tab, enable Allow remote computers to connect
- Restart fiddler
Android Configuration
- Connect to same network
- Modify network settings
- Add proxy for connection with your PC's IP address ( or hostname ) and default fiddler's port ( 8888 / you can change that in settings )
Now you can see full log from your device in fiddler
Also you can find a full instruction here