CODE
#!perl/bin/
use CGI::Carp qw/fatalsToBrowser/;
use strict;
use CGI;
use CGI::Cookie;
my $cgi = new CGI;
my $c = new CGI::Cookie(-name => 'different',
-value => "testing",
-expires => '+1d',
-domain => 'localhost');
print "Set-Cookie: $c\n";
print "Content-Type: text/html\n\n";
print $cgi->start_html('Sending cookie');
print $cgi->p('I got your cookie.');
print $cgi->end_html;
exit(0);
use CGI::Carp qw/fatalsToBrowser/;
use strict;
use CGI;
use CGI::Cookie;
my $cgi = new CGI;
my $c = new CGI::Cookie(-name => 'different',
-value => "testing",
-expires => '+1d',
-domain => 'localhost');
print "Set-Cookie: $c\n";
print "Content-Type: text/html\n\n";
print $cgi->start_html('Sending cookie');
print $cgi->p('I got your cookie.');
print $cgi->end_html;
exit(0);
I'm sure the code is correct. I even asked others already. The very first line doesn't matter for a Windows server, by the way.
Is this a known problem with PWS? And, since it looks to be a problem with it, is there another small web server that I can install for development purposes that I can point to the Perl libraries? Apache is out, as it will only run on a fully updated Win98 and above system.