You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by lists user <pr...@gmail.com> on 2007/09/24 10:22:00 UTC

get user's request data

Rather than use Apache2::Request to get user's request data,

    $req = Apache2::Request->new($r);
    @foo = $req->param("foo");


how can I use pure mp2 methods to do it? thanks.

Re: get user's request data

Posted by Frank Wiles <fr...@wiles.org>.
On Mon, 24 Sep 2007 16:22:00 +0800
"lists user" <pr...@gmail.com> wrote:

> Rather than use Apache2::Request to get user's request data,
> 
>     $req = Apache2::Request->new($r);
>     @foo = $req->param("foo");
> 
> 
> how can I use pure mp2 methods to do it? thanks.

  Well you *could* jump through a bunch of hoops to get the
  raw URI for GETs or the POST body, decode the data, etc.
  but why on earth would you want to do that? 

  What you are doing above is one of the two recommended ways
  of getting your request, it also happens to be the fastest.
  The other method is to use CGI.pm as you would in a normal
  CGI. 

 -------------------------------------------------------
   Frank Wiles, Revolution Systems, LLC. 
     Personal : frank@wiles.org  http://www.wiles.org
     Work     : frank@revsys.com http://www.revsys.com