perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: Problem - Missing input data
Date Wed, 17 Dec 2008 09:22:25 GMT
On Wed 17 Dec 2008, mod_perl User wrote:
> I am facing problem in mod_perl2.0 while opening an handler
> Code as follows,         my $r = Apache2::Request->new(shift,
> POST_MAX => 10 * 1024 * 1024);        my $status = $r->parse(); 
> Getting $status as 'Missing Input Data'

I am not an expert in libapreq but I have seen this when there is no 
request body (GET or empty POST). Use instead

$req=Apache2::Request->new($r);
$r->discard_request_body;          # read in the complete body
$status=$r->method eq 'POST' ? $req->body_status || $req->args_status
                             : $req->args_status; 

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Mime
View raw message