Aha! I found the culprit! You were spot on, although slightly confused. Apache does notice the status header of an internal redirect. Here's the code:
location = ap_table_get(r->headers_out, "Location");
if (location && location[0] == '/' && r->status == 200) {
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).
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.
update:
Ahh. I was wrong about CGI.pm. You can use
print redirect(-uri => "/foo", -status => 200);
|