Reputation: 722
I am using following perl code for parsing incoming URL GET data:
use Apache2::Request;
use Apache2::RequestRec;
$req = Apache2::Request->new($r);
$pg = $req->param('pg');
$ord = $req->param('order');
And I have following URL: dom.com/index.pl?pg=1&order=desc&color=red&number=15
Question: How can I get "pg=1&order=desc&color=red&number=15" part of URL at once? like:
$allparams= $req->param;
Upvotes: 1
Views: 250
Reputation: 385655
With mod_perl2, the environment object $r must be an Apache2::RequestRec object. In that case, all methods from Apache2::RequestRec are inherited.
So,
$req->args
Upvotes: 1