Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 19842 invoked from network); 27 Jan 2011 16:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 16:09:04 -0000 Received: (qmail 78594 invoked by uid 500); 27 Jan 2011 16:09:02 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 77577 invoked by uid 500); 27 Jan 2011 16:08:57 -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 77561 invoked by uid 99); 27 Jan 2011 16:08:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 16:08:56 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [130.189.128.58] (HELO hitchcock.org) (130.189.128.58) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 16:08:47 +0000 Received: from ([130.189.241.151]) by mailgate1.hitchcock.org with ESMTP with TLS id 5503342.386555188; Thu, 27 Jan 2011 11:08:24 -0500 Received: from DH201.dhmcmaster.dh.hitchcock.org ([2002:82bd:f16f::82bd:f16f]) by DH211.DHMCMaster.DH.Hitchcock.org ([130.189.241.151]) with mapi; Thu, 27 Jan 2011 11:08:23 -0500 From: "James B. Muir" To: "modperl@perl.apache.org" Date: Thu, 27 Jan 2011 11:08:24 -0500 Subject: POST method and PerlAuthenHandler Thread-Topic: POST method and PerlAuthenHandler Thread-Index: Acu+PGynrKlEstvtT2SD2ClFrAoMtA== Message-ID: <527C4914F1B2EA47B38422DE0FA05A65064B156559@DH201.DHMCMaster.DH.Hitchcock.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMast_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMast_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I am writing a perl authentication module for Apache2 that must inspect som= e request parameters before authorizing the requestor and forwarding the re= quest to a tomcat server via mod_jk. With the GET request method this is easy, I can inspect the parameters usin= g $r->args and forward the request. With the POST request method I can READ the request body, but it appears th= at the request body is removed from the request and is not forwarded to tom= cat via mod_jk. Is this correct? How do I inspect POST request parameters without modifying the request? I know there must be a standard way to do this kind of thing but I have bee= n unable find the answer after several hours of reading. Thank you for your help. -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for the use of the person to whom it is addressed = and may contain information that is privileged, confidential, and protected= from disclosure under applicable law. If you are not the intended recipien= t, your use of this message for any purpose is strictly prohibited. If you = have received this communication in error, please delete the message and no= tify the sender so that we may correct our records. --_000_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMast_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am writing a perl authentication module for Apache= 2 that must inspect some request parameters before authorizing the requesto= r and forwarding the request to a tomcat server via mod_jk.

 

With the GET request method this is easy, I can insp= ect the parameters using $r->args and forward the request.

 

With the POST request method I can READ the request = body, but it appears that the request body is removed from the request and = is not forwarded to tomcat via mod_jk. Is this correct?

 

How do I inspect POST request parameters without mod= ifying the request?

 

I know there must be a standard way to do this kind = of thing but I have been unable find the answer after several hours of read= ing.

Thank you for your help.

-James

 

 

 

 


IMPORTANT NOTICE REGARDIN= G THIS ELECTRONIC MESSAGE:

This message is intended for the use of the person to whom it is addressed = and may contain information that is privileged, confidential, and protected= from disclosure under applicable law. If you are not the intended recipien= t, your use of this message for any purpose is strictly prohibited. If you have received this communicatio= n in error, please delete the message and notify the sender so that we may = correct our records.
--_000_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMast_--