Problem - Missing input data

Problem - Missing input data

am 17.12.2008 09:33:32 von mod_perl User

--_2399b93e-4795-42d8-9fce-500fbd6175d2_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi !!=20
I am facing problem in mod_perl2.0 while opening an handler
Code as follows=2C my $r =3D Apache2::Request->new(shift=2C POST_MA=
X =3D> 10 * 1024 * 1024)=3B my $status =3D $r->parse()=3B
=20
Getting $status as 'Missing Input Data'
Could you pls help me out!!!
=20
=20
Thanks in advance!!
=20
=20
=20

____________________________________________________________ _____
Chose your Life Partner? Join MSN Matrimony FREE
http://in.msn.com/matrimony=

--_2399b93e-4795-42d8-9fce-500fbd6175d2_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






Hi !!

I am facing problem in mod_perl2.0 while opening an handler


Code as follows=2C
 =3B =3B =3B =3B =3B =3B&nbs=
p=3B my $r =3D Apache2::Request->=3Bnew(shift=2C POST_MAX =3D>=3B 10 * =
1024 * 1024)=3B
 =3B =3B =3B =3B =3B =3B =3B=
my $status =3D $r->=3Bparse()=3B

 =3B

Getting $status as 'Missing Input Data'


Could you pls help me out!!!

 =3B

 =3B

Thanks in advance!!

 =3B

 =3B

 =3B




Keep up with trends of the thread on M=
SN Lifestyle. Fashion is no more a passing phase. le.in.msn.com/' target=3D'_new'>Check it out!
=

--_2399b93e-4795-42d8-9fce-500fbd6175d2_--

Re: Problem - Missing input data

am 17.12.2008 10:18:30 von Fred Moyer

On Wed, Dec 17, 2008 at 12:33 AM, mod_perl User 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');

Re: Problem - Missing input data

am 17.12.2008 10:22:25 von torsten.foertsch

On Wed 17 Dec 2008, mod_perl User wrote:
> I am facing problem in mod_perl2.0 while opening an handler
> Code as follows, =A0 =A0 =A0 =A0 my $r =3D Apache2::Request->new(shift,
> POST_MAX =3D> 10 * 1024 * 1024); =A0 =A0 =A0 =A0my $status =3D $r->parse(=
);=20
> Getting $status as 'Missing Input Data'

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

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

Torsten

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