Wanted to e-mail the list and see if I'm just doing something wrong, or if
other people have encountered similar issues...
I'm using CAP::Authentication in an app right now, along with
CGI::Application::Dispatch, all running under mod_perl2. What happens is
that any time that CAP::Authentication does a redirect, I get back "200 - OK"
HTTP response headers instead of "302 - Moved" headers... This causes the
unfortunate problem of showing a "Document has moved 'here'" page each time
someone logs in/out, instead of doing the actual redirect.
From digging a bit further into CAP::Authentication I see that the "Location"
header gets set up properly when doing redirects, but the HTTP Status
is --not-- set up.
What I'm doing right now is patching "authen_dummy_redirect" as follows, which
works for me. It looks like "authen_dummy_redirect" gets called whenever
CAP::Authentication needs to do a redirect, so I've got it setting
the "header_type" like this:
sub authen_dummy_redirect {
my $self = shift;
$self->header_type('redirect');
return '';
}
Has anyone else experienced similar problems?
Although the above gets things working for me, I'm wondering if this is
something more specific to my particular environment than it being a bug in
CAP::Authentication; otherwise I expect that many others would be piping up
and wondering why its not redirecting properly.
Just me?
--
Graham TerMarsch
Howling Frog Internet Development, Inc.
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]