spacewarp has asked for the wisdom of the Perl Monks concerning the following question:
works, as does the rest of the program. In the browser, I see the cookie set attempt (using Mozilla, I purposefully deny the cookie without setting it to remember, so I can debug), but when it's given the redirect, it tries to download the cookie_test.cgi program instead of running it.print $q->redirect ( -url => "https://secure.domain.net/cgi-bin/coo +kie_test.cgi", -cookie => $cookieC );
Anyone know what's going on here?!#/usr/bin/perl -wT # !/usr/bin/perl -wT # Originally posted typo-ed first line # Cookie Test Program for Control Panel Administration use strict; use CGI; $ENV{PATH} = "/bin:/usr/bin"; delete @ENV{ 'IFS', 'CDPATH', 'ENV', 'BASH_ENV' }; my $q = new CGI; my $sessionid = $q->cookie( -name => "C" ); if ( defined $sessionid ) { print "Location: https://secure.domain.net/cgi-bin/ctladm.cgi\n\n"; } else { print <<AAA; Content-type: text/html ### Html error message cut out ### AAA ; } exit;
DISCLAIMER:<BR> Use of this advanced computing technology does not imply an endorsemen +t<BR> of Western industrial civilization.<BR>
Updated #! line per author's req. - dvergin 2003-06-08
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The 1st program runs, the 2nd downloads
by arthas (Hermit) on Jun 09, 2003 at 08:27 UTC | |
|
Re: The 1st program runs, the 2nd downloads
by DamnDirtyApe (Curate) on Jun 09, 2003 at 03:55 UTC | |
by spacewarp (Pilgrim) on Jun 09, 2003 at 04:00 UTC |