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

http://www.charlesproxy.com/download/latest-release/download.do

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.

see http://www.charlesproxy.com/documentation/faqs/ssl-connections-from-within-iphone-applications/

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.

UPDATE

Since Charles is trial software, I recently switched to using Fiddler2 (Fiddler Web Debugger (v4.4.5.3)).

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 :)


Monday, January 14, 2013

Distributed Computing for Artificial Intelligence

I am just completing the 1st semester of studies in the MSc. in Artificial Intelligence offered by the University of Moratuwa. During our first semester we followed a course on Distributed Computing for Artificial Intelligence. The course was lectured by Dr. Janaka Wijayanayake. It was a very interesting course especially since it was very relevant to my current field of work in mobile applications development. Below I am sharing some of the work we did for the subject..





Enhanced by Zemanta