Re: browser redirect

2002-08-21 Thread drieux
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_US

Re: browser redirect

2002-08-21 Thread Dave Smith
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. --Dave #!/usr/local/bin/perl5 use CGI qw(:all); # 'cause I'm lazy like that print header(), start_html(); if ($ENV{HTTP_USER_AGENT} =~ /Mozilla

Re: browser redirect

2002-08-21 Thread Connie Chan
- Original Message - From: "zentara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 9:14 PM Subject: Re: browser redirect > On Tue, 20 Aug 2002 15:25:41 -0700 (PDT), [EMAIL PROTECTED] (Dave > Smith) wrote: > > >I&

Re: browser redirect

2002-08-21 Thread Dave Smith
of only the Netscape 4.7 page to it. I'm still working with Connie & Wiggims suggestions though. I figured a browser redirect would be pretty easy to do --Dave >Don't print the "Content-type: text/html\n\n" when using Location. > >#!/usr/local/bin/perl > >

Re: browser redirect

2002-08-21 Thread zentara
On Tue, 20 Aug 2002 15:25:41 -0700 (PDT), [EMAIL PROTECTED] (Dave Smith) wrote: >I'm trying to write a program that will redirect people looking at a >site using Netscape 4. (I have a header that looks good in Mozilla, >Netscape 6, and IE, but looks pretty crappy in Netscape 4). > >I'm new at p

Re: browser redirect

2002-08-20 Thread Wiggins d'Anconia
Dave Smith wrote: > > Howdy, > > I'm trying to write a program that will redirect people looking at a > site using Netscape 4. (I have a header that looks good in Mozilla, > Netscape 6, and IE, but looks pretty crappy in Netscape 4). > > I'm new at programming, and am still reading Elements

browser redirect

2002-08-20 Thread Dave Smith
Howdy, I'm trying to write a program that will redirect people looking at a site using Netscape 4. (I have a header that looks good in Mozilla, Netscape 6, and IE, but looks pretty crappy in Netscape 4). I'm new at programming, and am still reading Elements of Programming with Perl, so pleas