perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: post data
Date Fri, 14 Sep 2007 18:06:48 GMT
> Currently I'm using Apache::RequestRec in my tests but it only supports the
> args method which doesn't fit my needs, cross project.
  > I've read through the docs and saw that I have two available options:
> 1.       using libapreq's Apache2::Request And then something like
> $apr->param('var') would work.
> 2.       using Apache2::RequestIO directly and it's read method. Which seems
> a bit dirty.
I believe you can also use the module. It provides several ways 
to get at the POST arguments.

You start with something like
my $r = shift;
my $Post = CGI->new($r);

Then you can use $Post->args() etc...

Hope this helps.

View raw message