perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: Trying to configure Apache2::Request
Date Sun, 10 Feb 2008 17:06:30 GMT
On Feb 10, 2008 1:57 AM, Mag Gam <magawake@gmail.com> wrote:
> doc.pl looks like this:
> #!/usr/bin/perl -w
>  use strict;
> use CGI;
> use APR::Request::Apache2 ();
>
>
> print "Content-type: text/html\n\n";
> print "Hello";

my $r = shift;

> my $req = Apache2::Request->new($r, POST_MAX => "1M");

Also, don't print your Content-type header.  Use CGI or $r to do it.

- Perrin

Mime
View raw message