Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

PerlAuthHandler for proxy a little odd

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


jwd at choice

Mar 15, 2000, 6:00 PM

Post #1 of 3 (415 views)
Permalink
PerlAuthHandler for proxy a little odd

I have both mod_perl and mod_proxy as shared objects. I have a
cookie-based PerlAuthHandler for <Directory proxy:*> that once the user
is authenticated, it REDIRECTS the originally
requested URL back to the browser with the "Set-Cookie" header.
Everything works OK except that when that page that is redirected back
to itself the first time gets back to the browser, the document headers
are displayed in the browser window. If a reload/refresh is clicked
then the page is displayed correctly.

If there is a way to simply resolve this I'd like to know. Would dong
something like sending a Pragma; nocache help?

thanks in advance,
jim drash
<jwd [at] choice>


ged at jubileegroup

Mar 16, 2000, 3:49 AM

Post #2 of 3 (356 views)
Permalink
RE: PerlAuthHandler for proxy a little odd [In reply to]

Hi there,

On Wed, 15 Mar 2000, jwd wrote:

> I have both mod_perl and mod_proxy as shared objects. I have a
> cookie-based PerlAuthHandler for <Directory proxy:*> that once the user
> is authenticated, it REDIRECTS the originally
> requested URL back to the browser with the "Set-Cookie" header.
> Everything works OK except that when that page that is redirected back
> to itself the first time gets back to the browser, the document headers
> are displayed in the browser window. If a reload/refresh is clicked
> then the page is displayed correctly.
>
> If there is a way to simply resolve this I'd like to know. Would dong
> something like sending a Pragma; nocache help?

Do you have PerlSendHeader ON?

See pages 170-171, Eagle Book (and the index).

73,
Ged.


jwd at choice

Mar 16, 2000, 4:21 PM

Post #3 of 3 (355 views)
Permalink
Re: PerlAuthHandler for proxy a little odd [In reply to]

Thanks for the input it does not seem to help either way. Here is the
code that does the work.

my $requested_uri = Apache::URI->parse($r, $r ->uri);
$r -> content_type('text/html');
$r -> header_out('Location' => $requested_uri);
$r -> header_out('Set-Cookie' => $ticket);
$r -> send_http_header;
return REDIRECT;




"G.W. Haywood" wrote:
>
> Hi there,
>
> On Wed, 15 Mar 2000, jwd wrote:
>
> > I have both mod_perl and mod_proxy as shared objects. I have a
> > cookie-based PerlAuthHandler for <Directory proxy:*> that once the user
> > is authenticated, it REDIRECTS the originally
> > requested URL back to the browser with the "Set-Cookie" header.
> > Everything works OK except that when that page that is redirected back
> > to itself the first time gets back to the browser, the document headers
> > are displayed in the browser window. If a reload/refresh is clicked
> > then the page is displayed correctly.
> >
> > If there is a way to simply resolve this I'd like to know. Would dong
> > something like sending a Pragma; nocache help?
>
> Do you have PerlSendHeader ON?
>
> See pages 170-171, Eagle Book (and the index).
>
> 73,
> Ged.

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.