On Wednesday, August 21, 2002, at 03:46 , Dave Smith wrote:
[..]
> Okay, I've got it figured out. Thanks for you help. I'll just
> redirect the print commands to run the new headers depending on
> browser versions.
[..]
>
> if ($ENV{HTTP_USER_AGENT} =~ /Mozilla\/4/i
> and not $ENV{'HTTP_USER_AGENT'} =~ /compatible/i ) {
>
> print "Netscape 4 page.\n";
[..]
just a head up - there are other browsers that
will pass in a Mozilla token - and yes the real
joke is that they will use the compatible token
as you note....
eg:
HTTP_USER_AGENT
Mozilla/4.5 (compatible; OmniWeb/4.0.5; Mac_PowerPC)
HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 5.21; Mac_PowerPC)
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:0.9.4) Gecko/20011126
Netscape6/6.2.1
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]