22

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

6 Answers 6

10

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/

10

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.

As several commenters have mentioned (thanks!), a popular option is Charles, which supports Windows, macOS and Linux. There's also Paros, which is written in Java so will run on most platforms, but it was last updated in 2006.

4
  • 2
    Charles proxy should also work. It seems to be more recently updated than Paros. Jul 26, 2011 at 12:11
  • On Windows, you can probably use Fiddler2 proxy.
    – David
    Jun 12, 2014 at 1:58
  • 1
    I just used Burp and the tutorial on TUAW. it worked like a charm to see all http requests. Mar 2, 2015 at 15:21
  • Indeed worked like a charm and was relatively quick and easy to get started. I did have to install the Charles SSL certificate on my iPhone before my iOS apps would accept it. Now I can inspect the headers that the iOS apps on my iPhone are sending to the respective server, see charlesproxy.com/documentation/faqs/… and google.com/… Sep 23, 2021 at 20:54
4

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.

4

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

1

You can also use Postman to capture HTTP requests. There's also Proxyman.

0

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/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .