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

On 30 abr, 16:00, Mmcolli00 Mom [email protected] 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/.

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

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

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.

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

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

Cheers,
Bob

Thanks in advance. MC

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


Bob H.
Recursive Design Inc.
http://www.recursive.ca/
weblog: Xampl.com is for sale | HugeDomains