comp.infosystems.www.authoring.html
error in c program for cgi
When compiled and placed in the cgi directory, the code below generates a
server (netbsd/apache) error. The directory & mintst.cgi permissions are
u=rwx g=x o=rx and have, if memory serves, been used previously with
success.
Any suggestions regarding the cause of error are most welcome.
Hul
---c code
int main() /* mintst.c */
{
printf("Content-type: text/html\n");
printf("<html>\n");
printf("<head><title>Title of mintst.c</title></head>\n");
printf("<body>\n");
printf("<tt>\n");
printf("<pre>\n");
printf("MINTST is complete\n");
printf("</pre>\n");
printf("</tt>\n");
printf("</body>\n");
printf("</html>\n");
exit(0);
}
---html code that links/calls mintst.cgi
see mintest <a href="http://www.panix.com/~ht/pcgi/mintst.cgi">[mintest]</a>
--
- for email, put the word "keeper" in the subject line -