From my website, I want to redirect to another website/page.
I tried:
use CGI qwstandard);
...
print redirect('
'Status: 302 Found Location: gets printed out and there is no redirect.
Similarly, using the alternate redirect technique
print "Location:
just prints the text "Location:
I believe this means that an earlier header was printed, like a print "Content-type: text/html\n\n";
The website is large with dispatcher and many paths with different requirements.
Is there a way to detect what header the server is operating under? A way to change, cancel, or escape the text/html type so either of the redirects will work?
I tried:
use CGI qwstandard);
...
print redirect('
'Status: 302 Found Location: gets printed out and there is no redirect.
Similarly, using the alternate redirect technique
print "Location:
just prints the text "Location:
I believe this means that an earlier header was printed, like a print "Content-type: text/html\n\n";
The website is large with dispatcher and many paths with different requirements.
Is there a way to detect what header the server is operating under? A way to change, cancel, or escape the text/html type so either of the redirects will work?