POST method and PerlAuthenHandler
am 27.01.2011 17:08:24 von James.B.Muir
--_000_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMa st_
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_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMa st_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
>
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_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMa st_--
Re: POST method and PerlAuthenHandler
am 27.01.2011 17:12:49 von Joe Schaefer
--0-148220221-1296144769=:85867
Content-Type: text/plain; charset=us-ascii
Use apreq.
>
>From: James B. Muir
>To: "modperl@perl.apache.org"
>Sent: Thu, January 27, 2011 11:08:24 AM
>Subject: POST method and PerlAuthenHandler
>
>
>Hello,
>
>I am writing a perl authentication module for Apache2 that must inspect some
>request parameters before authorizing the requestor and forwarding the request
>to a tomcat server via mod_jk.
>
>With the GET request method this is easy, I can inspect 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 modifying 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 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 recipient, your use
>of this message for any purpose is strictly prohibited. If you have received
>this communication in error, please delete the message and notify the sender so
>that we may correct our records.
>
--0-148220221-1296144769=:85867
Content-Type: text/html; charset=us-ascii
Use apreq.
From: James B. Muir <James.B.Muir@hitchcock.org>
To: "modperl@perl.apache.org" <modperl@perl.apache.org>
Sent: Thu, January 27, 2011 11:08:24 AM
Subject: POST method and PerlAuthenHandler
Hello,
I am writing a perl authentication module for Apache2 that must inspect some request parameters before authorizing the requestor and forwarding the request to a tomcat server via mod_jk.
With the GET request method this is easy, I can inspect 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 modifying 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 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 recipient, your use of this message for
any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.
--0-148220221-1296144769=:85867--
RE: POST method and PerlAuthenHandler
am 02.02.2011 21:57:01 von James.B.Muir
--_000_527C4914F1B2EA47B38422DE0FA05A65064ADC8F5ADH201DHMCMa st_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I've got Apache2::Request working and POST requests are working very nicely=
..
Thanks for steeing me in the right direction!
-James
________________________________
From: Joe Schaefer [joe_schaefer@yahoo.com]
Sent: Thursday, January 27, 2011 11:12 AM
To: James B. Muir; modperl@perl.apache.org
Subject: Re: POST method and PerlAuthenHandler
Use apreq.
From: James B. Muir
To: "modperl@perl.apache.org"
Sent: Thu, January 27, 2011 11:08:24 AM
Subject: POST method and PerlAuthenHandler
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.
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_527C4914F1B2EA47B38422DE0FA05A65064ADC8F5ADH201DHMCMa st_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
1">
E: 13px">
I've got Apache2::Request working and POST requests are working very n=
icely.
Thanks for steeing me in the right direction!
-James
=
From: Joe Schaefe=
r [joe_schaefer@yahoo.com]
Sent: Thursday, January 27, 2011 11:12 AM
To: James B. Muir; modperl@perl.apache.org
Subject: Re: POST method and PerlAuthenHandler
12pt">
Use apreq.
px; MARGIN-LEFT: 5px">
12pt">
12pt">
">From: James B. Muir <James.B.Muir@hitchcock.org>
To: "modperl@perl.apac=
he.org" <modperl@perl.apache.org>
Sent: Thu, January 27, 2011=
11:08:24 AM
Subject: POST method and Pe=
rlAuthenHandler
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.
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_527C4914F1B2EA47B38422DE0FA05A65064ADC8F5ADH201DHMCMa st_--