# First get any GET params my $qgs = $r->args; # If we also have POST params if( $r->method_number == M_POST ) { $qps = $r->content; }