[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: get user's request data
From:       Frank Wiles <frank () wiles ! org>
Date:       2007-09-24 17:38:39
Message-ID: 20070924123839.da528375.frank () wiles ! org
[Download RAW message or body]

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 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic