Archive for the ‘iPhone’ Category
Posted in debugging, iPhone | 4 Comments »
-
Wednesday, September 2nd, 2009
Things that make us happy:
-
Tuesday, August 4th, 2009
Nearly all iPhone applications take advantage of the device’s amazing internet connectivity. Whether its checking the balance of your bank account or using an interactive web application in Safari, there is a tangible level of connectedness. Wouldn’t it be great if you could watch, log, and edit the HTTP requests live as they happen from the comfort of your desktop? Not only is it possible, it is easier than you might think and doesn’t require jailbreaking your device! This article shows you how in just a few easy steps.
May I take this opportunity to offer my highest recommendation for a wonderful piece of software called the Charles debugging proxy. The software allows you to view and edit HTTP requests that filter through its proxy server. It is secure, easy to install and configure, and runs on both Windows and OS X. Charles has become an essential tool in my web developer bag of tricks and I use it everyday.
You can download a free trial, but you won’t regret purchasing a license for only US $50.
</soapbox>
This tutorial will focus on connecting iPhone applications with the Charles debugger
There are two main areas of setup, the Charles proxy host, and the iPhone device.
At this point you have two ways you can install the charles.cer file on your device. You can either email it to yourself and open the attachment from the device. Or, you can post the file on a web server and request the certificate in Safari on the device. Either method will raise an Install prompt that looks like the one below:

This step involves going to the Settings application and into the Wi-Fi section. There you will hopefully see an option for the Wireless AP name you are connected to.
Go to: Settings -> Wi-Fi -> “Your Wireless AP Name”
Once there, scroll to the bottom of the window and you should see settings options to configure a proxy host as below:

Enter your Charles proxy host address and port in the inputs provided
NOTE: Once you are done using the Proxy, you will have to set your HTTP Proxy setting to “Off” for your phone to return to normal function.
Open Safari and visit a website. You should see a prompt on your Charles machine to authorize the connection (this keeps unauthorized users from using your Proxy server):

Once the connection has been authorized, voilá! You should now see your phone’s HTTP requests live in Charles. For even more detail, you can click on the “Sequence” view.
Several useful things you can do with Charles at this point:

Take a look at the Charles Documentation for other tips and tricks:
http://www.charlesproxy.com/documentation/using-charles/
Enjoy, and happy hacking!!
Archive for the ‘iPhone’ Category
Posted in debugging, iPhone | 4 Comments »
Archive for the ‘iPhone’ Category
Posted in Blogroll, clients, iPhone | 2 Comments »