CGI program doesn't return anything
Posted on 2004-10-28
I am running thttpd on a (very) cut down version of Red Hat 7. I've written the following C program:
The program works fine when run from the shell and does what it should. I've put it under my www root as /cgi-bin/test.cgi
When I try to access it via my web browser, it is found (no 'document does not exist' error) and is being run as CGI (no 'not a cgi program' error), but just doesn't return anything. I've tried replacing the "\n\n" with "\r\n\r\n" to see if that was the problem but just can't get anything out of it. No errors, nothing.
Does anyone know why this might not work?