Re: Browser Sniffing

2000-06-30 Thread Matt Sergeant
On Fri, 30 Jun 2000, Edwin Pratomo wrote: Ask Bjoern Hansen wrote: On Thu, 29 Jun 2000, Drew Taylor wrote: I'm hoping it's been done already, because the user-agent strings are terribly inconsistent... I needed something like that once and ended up with this: sub UA { my

RE: Browser Sniffing

2000-06-30 Thread Leon Brocard
Drew wrote: I am about to embark on a journey to find/create a brower sniffing module. You may want to have a look at: http://search.cpan.org/search?dist=HTTP-BrowserDetect http://www.jamespo.ukshells.co.uk/perl/ Leon "mustn'treinventwheel" -- Leon Brocard | perl "programmer"

RE: Browser Sniffing

2000-06-30 Thread Geoffrey Young
-Original Message- From: Edwin Pratomo [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 29, 2000 10:06 PM To: [EMAIL PROTECTED] Subject: Re: Browser Sniffing Ask Bjoern Hansen wrote: On Thu, 29 Jun 2000, Drew Taylor wrote: I'm hoping it's been done already, because

Browser Sniffing

2000-06-30 Thread James Powell
Sorry, only just got back onto this mailing list... I've done some initial work on a module and registered the HTTP::Browscap namespace on CPAN, although I've been a bit slack on it lately. Have a look here http://www.jamespo.ukshells.co.uk/perl/ James

Re: Browser Sniffing

2000-06-30 Thread Drew Taylor
Leon Brocard wrote: Drew wrote: I am about to embark on a journey to find/create a brower sniffing module. You may want to have a look at: http://search.cpan.org/search?dist=HTTP-BrowserDetect http://www.jamespo.ukshells.co.uk/perl/ Ahhh, guess I should have searched CPAN a

Re: Browser Sniffing

2000-06-30 Thread Drew Taylor
Gunther Birznieks wrote: Would you mind please submitting this as a standard NON-Apache CPAN module? There are too many modules (even 1 is too many... ;)) under the Apache::* moniker that actually can be used in generic CGI programs. The fixuphandler sounds interesting, but I would

Re: Browser Sniffing

2000-06-30 Thread struan
* at 30/06 10:18 +0800 Gunther Birznieks said: At 09:06 AM 6/30/00 +0700, Edwin Pratomo wrote: this doesn't seem to be aware of either WAP browsers or the emulators. A typical usage of this is to return WML pages if the request comes from a WAP browser, otherwise return html pages.

Browser Sniffing

2000-06-29 Thread Drew Taylor
I am about to embark on a journey to find/create a brower sniffing module. It should get three things: 1) Browser 2) Version 3) Platform. Has anyone created such a beast? If I write it myself, I will be happy to share the code with those on the list. I'm hoping it's been done already, because

Re: Browser Sniffing

2000-06-29 Thread Casey Bristow
I've also played with the idea of creating a similiar class, but have not had time to really get on with it.. The best client sniffer that I have found thus far is a javascript (ewww) one.. but it would rock to have this functionality as an apache mod!

Re: Browser Sniffing

2000-06-29 Thread Drew Taylor
Casey Bristow wrote: I've also played with the idea of creating a similiar class, but have not had time to really get on with it.. The best client sniffer that I have found thus far is a javascript (ewww) one.. but it would rock to have this functionality as an apache mod

Re: Browser Sniffing

2000-06-29 Thread Ask Bjoern Hansen
On Thu, 29 Jun 2000, Drew Taylor wrote: I'm hoping it's been done already, because the user-agent strings are terribly inconsistent... I needed something like that once and ended up with this: sub UA { my $ua = shift; my $n = ""; my $v = ""; # $n is the name of the browser # $v

Re: Browser Sniffing

2000-06-29 Thread Drew Taylor
Ask Bjoern Hansen wrote: On Thu, 29 Jun 2000, Drew Taylor wrote: I'm hoping it's been done already, because the user-agent strings are terribly inconsistent... I needed something like that once and ended up with this: snip Cool! I ripped off the browser version code. It seemed much

Re: Browser Sniffing

2000-06-29 Thread Gunther Birznieks
Would you mind please submitting this as a standard NON-Apache CPAN module? There are too many modules (even 1 is too many... ;)) under the Apache::* moniker that actually can be used in generic CGI programs. The fixuphandler sounds interesting, but I would prefer if that were a wrapper

Re: Browser Sniffing

2000-06-29 Thread Scott Alexander
Looking at this, I'm tempted to do a similar thing. My thought was to take the code and then twist it slightly to put the information into a database. ie when I create a new session, grab the information about browser etc. Would save me a bit if it were already a completed apache::

Re: Browser Sniffing

2000-06-29 Thread brian moseley
On Fri, 30 Jun 2000, Gunther Birznieks wrote: There are too many modules (even 1 is too many... ;)) under the Apache::* moniker that actually can be used in generic CGI programs. yeah, i'm thinking the same thing about Apache::Session!

Re: Browser Sniffing

2000-06-29 Thread brian moseley
On Fri, 30 Jun 2000, Gunther Birznieks wrote: So two CPAN submissions, one under Apache::* and another under CGI::* or maybe under LWP (I prefer CGI::* though)... i vote HTTP!

Re: Browser Sniffing

2000-06-29 Thread Edwin Pratomo
Ask Bjoern Hansen wrote: On Thu, 29 Jun 2000, Drew Taylor wrote: I'm hoping it's been done already, because the user-agent strings are terribly inconsistent... I needed something like that once and ended up with this: sub UA { my $ua = shift; my $n = ""; my $v = ""; this

Re: Browser Sniffing

2000-06-29 Thread Gunther Birznieks
At 09:06 AM 6/30/00 +0700, Edwin Pratomo wrote: Ask Bjoern Hansen wrote: On Thu, 29 Jun 2000, Drew Taylor wrote: I'm hoping it's been done already, because the user-agent strings are terribly inconsistent... I needed something like that once and ended up with this: sub UA {