iPhone’s User-Agent

By using Charles‘ excellent reverse-proxy feature you can monitor the HTTP traffic from the iPhone Safari right on your Mac. Here are the HTTP headers that iPhone sends when it requests note19.com (I added the line breaks for ease of reading):


GET / HTTP/1.1
Accept-Language: en
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)
                 AppleWebKit/420+ (KHTML, like Gecko)
                 Version/3.0 Mobile/1C28 Safari/419.3
Accept: text/xml,application/xml,application/xhtml+xml,text/html;
           q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Connection: keep-alive
Host: note19.com:80

You can use the value of the User-Agent to detect on the server that the request is coming from an iPhone and then return an iPhone friendly response, if necessary.

Leave a Reply