bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
However, sometimes, not always, before the pages are output, I use CGI to write a cookie:print "Content-type: text/html\n\n"; print $template->output();
Those times when a cookie is written, the 'unsightly' Content-type... line is printed to the top of my output page. Here's a summary of how my script flows:my $newcookie = $query->cookie( -name=>'gardensessionID', -value=> $sessionnum, -expires=>'+24h'); print $query->header(-cookie=>$newcookie);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unwanted appearance of "Content-type..."
by matija (Priest) on May 03, 2004 at 14:49 UTC | |
by bradcathey (Prior) on May 03, 2004 at 15:12 UTC | |
by BUU (Prior) on May 03, 2004 at 22:36 UTC | |
by bradcathey (Prior) on May 04, 2004 at 00:19 UTC | |
by Anonymous Monk on May 04, 2004 at 05:04 UTC | |
|
Re: Unwanted appearance of "Content-type..."
by Arunbear (Prior) on May 04, 2004 at 09:01 UTC | |
|
Re: Unwanted appearance of "Content-type..."
by Anonymous Monk on May 04, 2004 at 06:42 UTC |