I have a Perl script that might print text/html at various places, so near the beginning I put:
print "Content-type: text/html\n\n";
This works fine, EXCEPT, and the end in some cases the script redirects to another web page. The problem is that if the above Content-type has been output, the redirect:
print "Location: "../thankyou.htm\n\n";
just prints out.
SO, is there a way to override the Content-type and make it redirect. Any other good workaround?
Thanks,
GN
print "Content-type: text/html\n\n";
This works fine, EXCEPT, and the end in some cases the script redirects to another web page. The problem is that if the above Content-type has been output, the redirect:
print "Location: "../thankyou.htm\n\n";
just prints out.
SO, is there a way to override the Content-type and make it redirect. Any other good workaround?
Thanks,
GN