Wei Gao wrote:

Thanks for the reminder. I think the reason that "print $query->redirect(-uri=>'http://www.mysite.com', -nph=>1);" is not working, is because my program doesn't seem to know how to handle "nph". I am using Apach1.3.26 and Perl 5.6.1. I have
"use CGI qw(:standard -nph) ;" at the beginning of the script. However, when I tried to use nph, the server complains about "Bad Header".
Is there any known issues that the versions I use don't support nph? Am I missing something?

I don't think NPH is related to the problem you're having, but Apache determines if a script is NPH by looking at the prefix of the file. Try naming your script "nph-something.cgi" and it should support NPH. This is not very well documented, unfortunately.

You don't need to use an NPH script to make redirection work. It's also still not clear to me what isn't working for you. When I get redirected in IE and then reload the page, it reloads the page I was redirected to.

Since this is all getting pretty far off topic for the mod_perl list, you might want to try asking on a CGI-specific list or on http://perlmonks.org/.

- Perrin



Reply via email to