I'd personally go with Apache2::Request (for the fast C parsers).
CGI.pm is useful if you need more portable code (although
Apache2::Request could be used for normal CGI these days if APR is
available)

  Issac

Eli Shemer wrote:
> Hey there.
> 
>  
> 
> I yesterday compiled and installed  apache2  on our company's server but
> it's currently on port 8080 for further testing.
> 
> I'm currently updating our perl code to run natural mod_perl 2 code and
> there's something I've stumbled upon.
> 
>  
> 
> Usually what we do is grep the POST data using the apache request's
> content method which I see is no more available.
> 
>  
> 
> $r = Apache->request();
> 
>  %params = $r->method eq 'POST' ? $r->content : $r->args;
> 
> This is unusable code now days I gather.
> 
>  
> 
> 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 would appreciate if someone could provide some more information and
> possibly suggest the preferred way of doing this, before I implement it
> to all of the files.
> 
>  
> 
> Thanks a lot.
> 
>  
> 

Reply via email to