Get browser name and version

Hello

I want get the browser name and version using ruby.

I have tried system command and wmi gem but to no avail.

Thanks in advance. MC

···

--
Posted via http://www.ruby-forum.com/.

I'm not quite sure, but I guess that Launchy has a interface through
which you can get this info.

···

On 30 abr, 16:00, Mmcolli00 Mom <mmc_coll...@yahoo.com> wrote:

Hello

I want get the browser name and version using ruby.

I have tried system command and wmi gem but to no avail.

Thanks in advance. MC
--
Posted viahttp://www.ruby-forum.com/.

the only real thing i know of to accomplish is using javascript to get the
information and pass it back to ruby or you can try examine the http headers
and see if it will display it.

Hope this helps,

Kevin

···

On Fri, Apr 30, 2010 at 3:00 PM, Mmcolli00 Mom <mmc_collins@yahoo.com>wrote:

Hello

I want get the browser name and version using ruby.

I have tried system command and wmi gem but to no avail.

Thanks in advance. MC
--
Posted via http://www.ruby-forum.com/\.

--
Kevin Hopkins, MCP MCTS
(c) 540.331.1772
(e) kevin@wearefound.com
(w) www.wearefound.com

Mmcolli00 Mom wrote:

I want get the browser name and version using ruby.

If you're writing a web application in Ruby, and want to get the browser
information of the client(s) which are connecting to it, then look at
the User-Agent: header. This might be something like
request.env['HTTP_USER_AGENT'] depending on what framework you're using.

···

--
Posted via http://www.ruby-forum.com/\.

Hello

I want get the browser name and version using ruby.

I have tried system command and wmi gem but to no avail.

There's this gem too <http://github.com/kuccello/Spy-Vs-Spy&gt;

Cheers,
Bob

···

On 2010-04-30, at 3:00 PM, Mmcolli00 Mom wrote:

Thanks in advance. MC
--
Posted via http://www.ruby-forum.com/\.

----
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so