Kirk wrote:
I'm new to mp2 and have a relatively old application that used the mp1
implementation of grabbing get/post params from incoming requests:
$r = shift;
# grab incoming value
my $value = $r->param('name');
...
...
# assign some value
$r->param('key' => 'val');
And of course, I need to consolidate both request type into one hash or
string so I can access either, or both, on demand.
What is the equivalent in mp2? I can't seem to find a general answer in the
docs and it's a bit confusing where this functionality disappeared to.
I use the following in mod_perl 2.
my $r = Apache2::RequestUtil->request;
my $req = Apache2::Request->new($r);
my $foo = $req->param('foo');
Colin