473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

User-Agent browser info

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
0 1321

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

Similar topics

1
by: Roy zo | last post by:
hello. i would like to know how to get the browser details of my surfers (like: ip, langauge, version, OS, etc'). if you have a link to some information or manual it will be great. thanks,...
10
by: Greener | last post by:
Hi, I need help badly. Can you do client-side programming instead of server-side to capture the Browser type info? If this is the case, what's wrong with the following? <script...
2
by: Aamir Ghanchi | last post by:
Hi, I dont have an AOL browser. If someone has the most recent version, Can they please give me the following info alert("navigator.appName="+navigator.appName+...
12
by: Jan Buchwald | last post by:
navigator.userAgent returns information about the user operting system, Browser etc. Usually you get somthing like: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) or Mozilla/4.0...
2
by: Tyrone Bloombaumbergenthal | last post by:
I am writing a win form application in C#, I want to be able to retrieve web pages using different useragent strings and render the results in a web browser to see how my app responds to different...
3
by: Q. John Chen | last post by:
Is there an easy way to get following info of the client machine? machine name OS version IE or Netscape, and there version etc. Lan, Broadbank, or modem connection? Speed?
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
16
by: petermichaux | last post by:
Hi, Does anyone have a a cross-browser setOpacity function that does not use browser sniffing? I looked at the Yahoo! UI function and it detects IE by looking for window.ActiveXObject. I also...
4
by: igotyourdotnet | last post by:
I have a web app that I want to make the pages render correctly based on what type of browser is connected. How can I determine if the browser is the desktop IE version or a handheld device version?
3
by: cketcham | last post by:
All, I have the following code: use 5.010; use LWP::UserAgent; use URI::URL; use LWP::Debug qw(+); my $browser = LWP::UserAgent->new();
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.