Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi Ken:
I have tried again,using the correct code below:#! /bin/sh
# # cgi-bin/test.cgi#
echo "Content-type: text/html\n\n"
echo
echo "The cgi script is working\n" However, when i click the "ok" button in the index.html,no page to find, the ie address is: http://202.112.147.82/cgi-bin/test.cgi (http://202.112.147.82/cgi-bin/test.cgi)? I really don't know where the problem is, and why not use this below code #include <stdio.h>
void main(void)
{
printf("content-type: text/html\n");
printf("\n");
printf("the cgi script is working\n);
exit(0);
} BOA in the distribution doesn't support this? Thank you again~! Best Regards! Justin