By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

User-Agent browser info

P: 22
Hi everyone. I want to get list of browsers from the User-Agent strings in HTTP header. The browser info is said to be the second entry inside the parenthesis (U for Mozilla Firefox), but sometimes that is not enough and it must be related to other entries, like in the following where the browser is Google Chrome and seen second last in the string.

Expand|Select|Wrap|Line Numbers
  1. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
As you see, the user-agent string is quite messy and I can't find a clear pattern in it for implementing. Any idea or suggestions how to handle this? Thanks.
May 31 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.