perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wiles <fr...@wiles.org>
Subject Re: get user's request data
Date Mon, 24 Sep 2007 17:38:39 GMT
On Mon, 24 Sep 2007 16:22:00 +0800
"lists user" <practicalperl@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 


Mime
View raw message