in reply to Re: Re: cgi redirect (again)
in thread cgi redirect (again)
So if there's a status, it has to be "200". Any other status, and the code falls through to sending the header out to the client instead (an external redirect).location = ap_table_get(r->headers_out, "Location"); if (location && location[0] == '/' && r->status == 200) {
And there appears to be no-way to force a 200 status using CGI.pm's "redirect". {sigh}
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
print redirect(-uri => "/foo", -status => 200);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Re: Re: cgi redirect (again)
by EvdB (Deacon) on Dec 03, 2002 at 19:56 UTC |