[HRPM] Modules talk
chicks at chicks.net
chicks at chicks.net
Tue Apr 4 22:27:23 CDT 2000
On Sat, 1 Apr 2000, Terry wrote:
> Hey all... Thanks for the Module talk on Thursday... good stuff...
I'm glad somebody got something out of it.
> I have another question at the moment or request, does anyone have a
> successful cgi running that deals with cookies? I have not been able
> to successfully get my cookie to work.... If so would it be possible
> to get the source just to see how you worked it?
I don't have a CGI example. But these lines begin every mod_perl program
I write.
my $r = shift;
my %in = $r->headers_in();
my %args = $r->method eq 'POST' ? $r->content : $r->args;
$r->header_out("Perl-Version" => $]);
$r->content_type("text/html");
$r->send_http_header;
my $cookie = $in{'Cookie'};
You might prefer to check out the documentation for the CGI::Cookie
module. man CPAN if you haven't yet for an easy way to install it. :-)
--
</chris>
Q: Why did Bill Gates cross the road?
A: To avoid the Department of Justice.
More information about the Norfolk-pm
mailing list