[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Detect and analyze browser / user-agent string

Asked by Yavor_01126 in Web Browsers, Miscellaneous Web Development, Ruby Scripting Language

Tags: user-agent, browser

Hi!

I am storing into a database the user-agent of the logged in users.

My question is how to effectively scan/analyze the user-agent string so I can extract from it what is the browser, browser version, engine, platform/os and language?

I'm looking for explanations and maybe some regular expression solutions.

I've searched all over the internet for a solution or a least a standard about user-agent strings that I can use but with no luck :(

My code is in Ruby but PHP or pseudo code will be fine.

Thanks!
[+][-]08/29/09 07:25 PM, ID: 25216154Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/30/09 03:23 AM, ID: 25217054Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/30/09 06:49 AM, ID: 25217657Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/12/09 08:07 PM, ID: 25811300Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625