In an Apache::Registry ErrorDocument (e.g. ErrorDocument 404 /my404.pl )
This doesn't work:
$r->header_out('Location', $newurl);
$r->status(302);
return OK;
Apache returns an error saying that my 404 handler returned a 302 error.
Does the same if I use err_header_out
Yet enabling "Perl
Not sure but give err_headers_out a try?
Tom
Carl Johnstone wrote:
>
> In an Apache::Registry ErrorDocument (e.g. ErrorDocument 404 /my404.pl )
>
> This doesn't work:
>
> $r->header_out('Location', $newurl);
> $r->status(302);
> return OK;
>
>
> Apache returns an error saying that my 404
On Fri, 2006-03-17 at 16:41 +, Carl Johnstone wrote:
> In an Apache::Registry ErrorDocument (e.g. ErrorDocument 404 /my404.pl )
>
> This doesn't work:
>
> $r->header_out('Location', $newurl);
> $r->status(302);
> return OK;
>
>
> Apache returns an error saying that my 404 handler ret
> > Yet enabling "PerlSendHeader On" and doing:
> >
> > print "Location: $newurl\n\n";
> >
> > works fine.
>
> What are the complete headers that sends? I'm guessing it sends a 200
> status and it only works because your browser is broken and follows the
> redirect anyway.
No, it does convert t