You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fabien Roy <fr...@gfi.fr> on 2002/12/11 10:47:46 UTC

cgi redirect does not work

Hello!

I want to use CGI redirections in my application running on Tomcat 4.1

This simple redirect.cgi script: (I did a chmod 755 on the file)

$url = http://www.perl.com/;
print "Location: $url\n\n";
exit;

does not work when I call it from a HTML page:
<A HREF="http://hostname:8080/cgi-bin/redirect.cgi">Click Me</A>

The location appears in the browser location box as
http://hostname:8080/cgi-bin/redirect.cgi and results in a blank page. The
browser is IE6.

I have no problem running cgi scripts.

Is there something to add in web.xml of my application or in the
$CATALINA_HOME/conf/server.xml, web.xml for the redirection to work?

Thanks a lot in advance

Fabien