Thursday, January 17, 2013
Monitor HTTP/HTTPS connections on iOS/Android device
This post is basically a guide on how to setup your pc as a proxy to monitor HTTP/HTTPS traffic on an iOS/Android device.
Step 1: Download and install Charles on your pc
You can try the 30 day free trail..
Step 2 :
Check the ip on your pc. Set this as the proxy on your phone, in network settings. Make sure the port is set to 8888 (this is the posrt Charles listens on).
Optional : If you are listening to HTTPS traffic on your phone you need to install the charles certificate on your phone.
Step 3 :
Now you can start a recording session in Charles and monitor the web traffic on your phone:) This is an easy way to monitor web traffic from mobile applications.
Since Charles is trial software, I recently switched to using Fiddler2 (Fiddler Web Debugger (v18.104.22.168)).
Setup is similar to Charles but in the case of Fiddler you need to explicitly set permissions in Fiddler allowing remote devices to connect..
Tools -> Fiddler Options -> Connections Tab -> check Allow remote computers to connect :)