Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Just the same way you can open the web inspector or activity window in Safari on your laptop and see all the HTTP requests any website has made, how do you do that on the iphone for an iPhone app, if the iPhone app is using HTML5 (or even if it's a native app)?

share|improve this question
add comment

5 Answers 5

The easiest method is to install a debugging proxy and point your iPhone to it (specify the proxy address in the settings for the wifi network). Obviously, this'll only work over wifi and not via a cellular data connection. You'll then have access to all of the http(s) requests and responses sent and received by your iPhone.

Something like Paros can do what you want (it's written in Java, so will run on most platforms).

share|improve this answer
    
Charles proxy should also work. It seems to be more recently updated than Paros. –  Peter Štibraný Jul 26 '11 at 12:11
    
On Windows, you can probably use Fiddler2 proxy. –  David Jun 12 at 1:58
add comment

indeed if you download charles and follow the instruction on this page (under iphone). You can monitor the http requests that your iPhone

http://www.charlesproxy.com/documentation/faqs/

share|improve this answer
add comment

To watch the http(s) traffic, you will need to intercept the network traffic travelling between your iPhone and your Internet Service Provider (ISP).

To do this you need to set your phone to use WiFi and to pass network traffic through a proxy. Proxies include squid and Charles.

A good proxy will offer log files and allow you to see server addresses and, if not encrypted, requested URLs.

share|improve this answer
add comment

Mitmproxy will also work for SSL connections, and even has a tutorial specific to iOS.

share|improve this answer
add comment

With respect to web apps on mobile Safari:

Besides the proxy method, these iOS apps/tools might be helpful, I've not used them though:

https://itunes.apple.com/us/app/mihtool/id584739126?ls=1&mt=8

https://itunes.apple.com/us/app/httpwatch-basic-http-sniffer/id658886056?mt=8

or use the remote debugging feature of Safari:

http://moduscreate.com/enable-remote-web-inspector-in-ios-6/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.