On Wed, Dec 17, 2008 at 12:33 AM, mod_perl User <mod_perlu...@live.in> wrote:
> Hi !!
> 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'
>
> Could you pls help me out!!!

I believe that means that the post request was empty.  Were you trying
to get the request parameters?

A minor comment on your code - suggest that you use $req for your
created apache request object.  $r is commonly used to hold the
Apache2::RequestRec object as opposed to the Apache2::Request object.

Here's how I usually get at the request data:

sub handler {
    my $r = shift;
    my $req = Apache2::Request->new($r);
    my $foo = $req->param('foo');

Reply via email to