Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 11008 invoked from network); 19 Jan 2010 16:11:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2010 16:11:36 -0000 Received: (qmail 40555 invoked by uid 500); 19 Jan 2010 16:11:35 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 40496 invoked by uid 500); 19 Jan 2010 16:11:33 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 40488 invoked by uid 99); 19 Jan 2010 16:11:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:11:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:11:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NXGfX-0008GL-J5 for modperl@perl.apache.org; Tue, 19 Jan 2010 08:11:03 -0800 Message-ID: <27228223.post@talk.nabble.com> Date: Tue, 19 Jan 2010 08:11:03 -0800 (PST) From: Ivory To: modperl@perl.apache.org Subject: Adding args to a Request through InputFilter MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ivoryman69@msn.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I would like to add args to a request on the fly thanks to an InputFilter. It seems like the $f->r->args($new_args) doesn't record the new argument inside the request. For example : Inside the filter : sub handler{ my ($f, $bb, $mode, $block, $readbytes) = @_; # filter args # $mode, $block, $readbytes are passed only for input filters my $rv = $f->next->get_brigade($bb, $mode, $block, $readbytes); return $rv unless $rv == APR::Const::SUCCESS; print STDOUT "Perlfilter : Uri = ", $f->r->uri(),"\n"; print STDOUT $f->r->args(),"\n"; #No argument $f->r->args("userId=10"); print STDOUT $f->r->args(),"\n"; #Returns the arg I passed } In a running perl script on my apache the $r->args() doesn't return anything. As I'm a newbie using mod_perl, a little help would be appreciated :) Ivory -- View this message in context: http://old.nabble.com/Adding-args-to-a-Request-through-InputFilter-tp27228223p27228223.html Sent from the mod_perl - General mailing list archive at Nabble.com.