POST method and PerlAuthenHandler
--_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
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
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">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello, <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">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.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">With the GET request method this is easy, I can insp=
ect the parameters using $r->args and forward the request.<o:p></o:p></p=
>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">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?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">How do I inspect POST request parameters without mod=
ifying the request?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">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.
<o:p></o:p></p>
<p class=3D"MsoNormal">Thank you for your help.<o:p></o:p></p>
<p class=3D"MsoNormal">-James<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<br>
<font face=3D"Verdana" color=3D"Black" size=3D"1">IMPORTANT NOTICE REGARDIN=
G THIS ELECTRONIC MESSAGE:<br>
<br>
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.<br>
</font>
</body>
</html>
--_000_527C4914F1B2EA47B38422DE0FA05A65064B156559DH201DHMCMa st_--
Re: POST method and PerlAuthenHandler
--0-148220221-1296144769=:85867
Content-Type: text/plain; charset=us-ascii
Use apreq.
>
>From: James B. Muir <James.B.Muir [at] hitchcock.org>
>To: "modperl [at] perl.apache.org" <modperl [at] 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
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt"><div>Use apreq.<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> James B. Muir <James.B.Muir [at] hitchcock.org><br><b><span style="font-weight: bold;">To:</span></b> "modperl [at] perl.apache.org" <modperl [at] perl.apache.org><br><b><span style="font-weight: bold;">Sent:</span></b> Thu, January 27, 2011 11:08:24 AM<br><b><span style="fo
nt-weight: bold;">Subject:</span></b> POST method and PerlAuthenHandler<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off">
<style><!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-fami ly:"sans-serif";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
span.EmailStyle17
{font-family:"sans-serif";color:windowtext;}
..MsoChpDefault
{}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hello, </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">With the GET request method this is easy, I can inspect the parameters using $r->args and forward the request.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">How do I inspect POST request parameters without modifying the request?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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.
</p>
<p class="MsoNormal">Thank you for your help.</p>
<p class="MsoNormal">-James</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
<br>
<font color="Black" face="Verdana" size="1">IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE:<br>
<br>
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.<br>
</font>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div></blockquote>
</div><br>
</body></html>
--0-148220221-1296144769=:85867--
RE: POST method and PerlAuthenHandler
--_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 [at] yahoo.com]
Sent: Thursday, January 27, 2011 11:12 AM
To: James B. Muir; modperl [at] perl.apache.org
Subject: Re: POST method and PerlAuthenHandler
Use apreq.
From: James B. Muir <James.B.Muir [at] hitchcock.org>
To: "modperl [at] perl.apache.org" <modperl [at] 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
<html dir=3D"ltr">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css">DIV {
MARGIN: 0px
}
</style>
<meta name=3D"GENERATOR" content=3D"MSHTML 8.00.7600.16700">
<style id=3D"owaTempEditStyle"></style><style title=3D"owaParaStyle"><!--P =
{
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi=3D"x">
<div style=3D"FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZ=
E: 13px">
<div>I've got Apache2::Request working and POST requests are working very n=
icely.</div>
<div> </div>
<div>Thanks for steeing me in the right direction!</div>
<div><font size=3D"2" face=3D"tahoma">-James</font></div>
<div><font size=3D"2" face=3D"tahoma"></font> </div>
<div dir=3D"ltr"><font color=3D"#000000" size=3D"2" face=3D"Tahoma"></font>=
</div>
<div style=3D"DIRECTION: ltr" id=3D"divRpF653097">
<hr tabindex=3D"-1">
<font color=3D"#000000" size=3D"2" face=3D"Tahoma"><b>From:</b> Joe Schaefe=
r [joe_schaefer [at] yahoo.com]<br>
<b>Sent:</b> Thursday, January 27, 2011 11:12 AM<br>
<b>To:</b> James B. Muir; modperl [at] perl.apache.org<br>
<b>Subject:</b> Re: POST method and PerlAuthenHandler<br>
</font><br>
</div>
<div></div>
<div>
<div style=3D"FONT-FAMILY: courier,monaco,monospace,sans-serif; FONT-SIZE: =
12pt">
<div>Use apreq.<br>
</div>
<blockquote style=3D"BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5=
px; MARGIN-LEFT: 5px">
<div style=3D"FONT-FAMILY: courier,monaco,monospace,sans-serif; FONT-SIZE: =
12pt"><br>
<div style=3D"FONT-FAMILY: times new roman,new york,times,serif; FONT-SIZE:=
12pt"><font size=3D"2" face=3D"Tahoma"><b><span style=3D"FONT-WEIGHT: bold=
">From:</span></b> James B. Muir <James.B.Muir [at] hitchcock.org><br>
<b><span style=3D"FONT-WEIGHT: bold">To:</span></b> "modperl [at] perl.apac=
he.org" <modperl [at] perl.apache.org><br>
<b><span style=3D"FONT-WEIGHT: bold">Sent:</span></b> Thu, January 27, 2011=
11:08:24 AM<br>
<b><span style=3D"FONT-WEIGHT: bold">Subject:</span></b> POST method and Pe=
rlAuthenHandler<br>
</font><br>
<style>UNKNOWN {
FONT-FAMILY: "Cambria Math"
}
UNKNOWN {
FONT-FAMILY: Calibri
}
P.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "sans-serif"; FONT-SIZE: 11pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
FONT-FAMILY: "sans-serif"; COLOR: windowtext
}
UNKNOWN {
MARGIN: 1in
}
</style>
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello, </p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">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.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">With the GET request method this is easy, I can insp=
ect the parameters using $r->args and forward the request.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">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?</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">How do I inspect POST request parameters without mod=
ifying the request?</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">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.
</p>
<p class=3D"MsoNormal">Thank you for your help.</p>
<p class=3D"MsoNormal">-James</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal"> </p>
</div>
<br>
<font color=3D"black" size=3D"1" face=3D"Verdana">IMPORTANT NOTICE REGARDIN=
G THIS ELECTRONIC MESSAGE:<br>
<br>
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.<br>
</font></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<font face=3D"Verdana" color=3D"Black" size=3D"1">IMPORTANT NOTICE REGARDIN=
G THIS ELECTRONIC MESSAGE:<br>
<br>
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.<br>
</font>
</body>
</html>
--_000_527C4914F1B2EA47B38422DE0FA05A65064ADC8F5ADH201DHMCMa st_--