0

I'm quite a newbie on HTTP and client and server stuff.

On the server side, is there a way to tell the difference between HTTP requests sent from "iPhone UIWebView" and "iPhone Safari / PC browsers / Mac Browsers", given that I the programmer don't add extra fields to the iPhone UIWebView request?

Thanks in advance.

Di Wu
  • 6,436
  • 3
  • 35
  • 51

1 Answers1

2

No, since UIWebView's send a user agent akin to the one send with Mobile Safari. Last I checked, there wasn't anything noticeable that differed between the two, though that could've changed. Try sniffing the HTTP requests with a tool like Wireshark and see if they differ.

Alan Zeino
  • 4,406
  • 2
  • 23
  • 30
  • 1
    Also want to add that you *can* modify the User-Agent for your own UIWebView, if, for some reason you want to be able to differentiate between the two. http://stackoverflow.com/questions/478387/change-user-agent-in-uiwebview-iphone-sdk – Wayne Hartman Jan 12 '11 at 04:02
  • Ah, yes! That's an awesome way to tell web view requests from within your own app... – Alan Zeino Jan 12 '11 at 04:32