This prints the "Set-Cookie" line first, and follows the "Content-Type" with the required double-newlineperl -MCGI -e 'my $q = CGI->new(); print $q->header(-type=>"text/html +", cookie => $q->cookie(-name=>"foo",-value=>"bar"))'
In reply to Re: how to set a cookie without using CGI.pm?
by davis
in thread how to set a cookie without using CGI.pm?
by chauzer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |