
ryan at livesite
Oct 22, 2009, 9:14 PM
Post #7 of 7
(178 views)
Permalink
|
|
Re: Apache2::Request->param fails with POST
[In reply to]
|
|
This may be obvious, however note that calling $req->param will invoke the input filters, should have have any configured. On 10/21/2009 06:12 PM, nmittal wrote: > Hi I am using Apache2.2 and mod_perl. I have a login page that POSTs to an > authentication script. > <form method=POST > action="/authenticate?sid=06eff4cdc3231db0236cdbe2c51e6618"> > <table> > <tr> > <td align=right>User(or email):</td> > <td><input type=text name=email value=""></td></tr> > <tr> > <td align=right>Password:</td> > <td><input type=password name=password></td></tr></table> > <input type=submit value=Login><BR> > </form> > > on the server side.. I have the following code... > > use Apache2::Request; > use Apache2::SubRequest; > use Apache2::RequestRec (); > use Apache2::Upload; > use Apache2::URI; > > my $r = shift; > my $req = Apache2::Request->new($r); > > #Get the Query String and POST data > log("PROCESS", "MESSAGE", "Inside"); > my @keys = $req->param; > log("PROCESS", "PARAMS", Dumper($req->param)); > > when I post the form, the logs show till "Inside" and the browser keeps > loading the page, the CPU consumption on the server is 100% by httpd. > > however, if I change the form so it uses GET instead of POST, everything > works fine. > > Any help is appreciated. > > thanks > Nishant > > >
|