I have no problem executing the cgi file under the regular url as follows:
http://www.myhost.com/mydir/cgi-bin/test.cgi
However, when I tried to insert it into an HTML file (called index.html) as follows:
<HTML>
<BODY>
<P>Here the output from my program:
<FORM ACTION="/var/www/mydir/cgi-bin/test.cgi" METHOD=POST>
</FORM>
</P>
</BODY>
</HTML>
CGI fails when I do:
http:
The CGI ( test.cgi) file looks something like this:
use CGI::Carp qw(fatalsToBrowser);
print "Test cgi!\n";
What is the right way to do this?
source
share