Shouldn't it be: sub my_handler { my $r = shift; my $req = Apache2::Request->new($r, POST_MAX => "1M"); ...
On Friday 23 May 2008 04:49:55 mome wrote: > Hi, > > I am trying to use mod_perl2 with Apache2::Request. My intention is to get > parameter value of post method. As described in its document and previouse > threads said to cache the data with post method... > "....Use Apache2::Request in the auth handler, and apreq > will do the SOMETHING you need automatically." > > My existing code i.e. handler begins with > sub my_handler { > my $self = shift; > my $r = shift; > .... > ... > I guess that $r refers to Apache2::RequestRec object because the lines > that follows use methods of this object. > > With the little knowledge, I don't know why calling $r = shift returns > Apache2::RequestRec. > How can I make use Apache2::Request in my handler so I can preseve the > parameter via post method? > > I tried the following line without success > > sub my_handler { > my $self = shift; > my $r = shift; > my $req = Apache2::Request->new($r, POST_MAX => "1M"); > ... > ... > } > Please advice. > > PA -- xyon