I just want to know whether we can differentiate the user request. I mean, I would like to render the pages according to the request. If the request comes from iPhone/iPad/Android then I will display the pages designed accordingly. Else I will display the normal HTML page.
I am not sure, if we can find out the type of the user based on the request. Can anyone help me out by posting some ideas ?
I think you’re asking:
A: There’s no SURE way to do this.
Your best bet is to look at the http header from the client request. Specifically, look at the “user-agent”.
Here’s a link with a similar question:
Is it possible to identify Android apps from http headers?
Here are three examples:
http://www.askdavetaylor.com/detect_apple_iphone_user_web_site_server.html
1) IE, from a Windows PC:
2) An Apple iPhone with Safari:
3) An Android phone: