Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8457710382 for ; Thu, 2 May 2013 20:50:41 +0000 (UTC) Received: (qmail 26919 invoked by uid 500); 2 May 2013 20:50:38 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 26900 invoked by uid 500); 2 May 2013 20:50:38 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 26886 invoked by uid 99); 2 May 2013 20:50:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 20:50:38 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pnorton3.14@gmail.com designates 209.85.215.179 as permitted sender) Received: from [209.85.215.179] (HELO mail-ea0-f179.google.com) (209.85.215.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 20:50:34 +0000 Received: by mail-ea0-f179.google.com with SMTP id h14so464686eaj.10 for ; Thu, 02 May 2013 13:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=gLEdH6sp9g7Y8j+RHvoLMd/yyH1JPFvjbHiPLdm4HYw=; b=PCCwFW8ywj3L58v5dRY41He0Y5tZfs71ZxegEzszyE+dwND2aIhzZcm1vBCLBSjgU7 Ee2+UlGYbLvPmDNAlp4fr1SmxdbmXxnhMwxXW5JOfgDdIAIthXXC2Olf18MAeq4HH7Ob BKGv2McFGsPoH0P/oPQ22nbDps8DmRToAyvgrh5fXLsrlpoKqyAtvmPBtdHSlb+sOUMy GC3AkIr8ay/JYnAcc2me+yJY+cxEa78y+KWwKRgKYkQ0EJLuKubTdzwP8KpgrQPYV+1N FSFbzcu0IDKAMOL4F5uqu0pFzIFXaRaW11/I7c15a32nhP1DHCJMxxKM6IqiT6snneqV glJA== MIME-Version: 1.0 X-Received: by 10.15.26.6 with SMTP id m6mr24041828eeu.4.1367527812849; Thu, 02 May 2013 13:50:12 -0700 (PDT) Received: by 10.223.161.9 with HTTP; Thu, 2 May 2013 13:50:12 -0700 (PDT) In-Reply-To: <51815B32.3000009@dm.cobite.com> References: <51815B32.3000009@dm.cobite.com> Date: Thu, 2 May 2013 21:50:12 +0100 Message-ID: From: Paul Norton To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=089e0168144c81ae4f04dbc2610b X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_auth_form and original POST body --089e0168144c81ae4f04dbc2610b Content-Type: text/plain; charset=ISO-8859-1 Hello David Have you tried mod_request->keptbodysize http://httpd.apache.org/docs/2.4/mod/mod_request.html#keptbodysize All the best Paul On 1 May 2013 19:13, David Mansfield wrote: > Hi All: > > I'm using apache 2.4.4 compiled on Centos 6.3 and attempting to use > mod_auth_form for "inline login with body preservation". > > The problem is that the POSTed body (from the original/unauthenticated > page) is lost forever when the login page is rendered, so it seems > impossible to know what to put for the value of the httpd_body variable. > > I have tried both a cgi and a mod_include based script. I have > > KeptBodySize 65536 > > along with one of > > ErrorDocument 401 /cgi-bin/login.cgi > > or > > ErrorDocument 401 /login.shtml > > How can I access the original POST data during the login page rendering in > this scenario? > > It seems the fundamental problem is the ErrorDocument handler is > discarding the POST during internal redirect... > > -- > Thanks, > David Mansfield > Cobite, INC. > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > -- * "I know one thing: That I know nothing"* - Socrates *"We're all explorers here"* - T S Eliot --089e0168144c81ae4f04dbc2610b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello David
Have you tried mod_req= uest->keptbodysize http://httpd.apache.org/docs/2.4/mod/mod_request.= html#keptbodysize

All the best Paul

<= /div>


On 1 May= 2013 19:13, David Mansfield <apache@dm.cobite.com> wrote= :
Hi All:

I'm using apache 2.4.4 compiled on Centos 6.3 and attempting to use mod= _auth_form for "inline login with body preservation".

The problem is that the POSTed body (from the original/unauthenticated page= ) is lost forever when the login page is rendered, so it seems impossible t= o know what to put for the value of the httpd_body variable.

I have tried both a cgi and a mod_include based script. =A0 I have

KeptBodySize 65536

along with one of

ErrorDocument 401 /cgi-bin/login.cgi

or

ErrorDocument 401 /login.shtml

How can I access the original POST data during the login page rendering in = this scenario?

It seems the fundamental problem is the ErrorDocument handler is discarding= the POST during internal redirect...

--
Thanks,
David Mansfield
Cobite, INC.

-------------------------------------------------------------= --------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




--
&qu= ot;I know one thing: That I know nothing" - Socrates
"= We're all explorers here" - T S Eliot
--089e0168144c81ae4f04dbc2610b--