My C Program Code:
#include <stdio.h>
int main(void) {
printf("Content-Type: text/plain;charset=us-ascii\n\n");
printf("Hello world\n\n");
return 0;
}
I compiled it several times, using the commands:
gcc -o first.cgi first.c
gcc first.c -o first.cgi
g++ first.c -o first.cgi
When I use first.cgi
in my web it gives error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Unrecognized character \x90 at J:\KKS_Sawdagger\cgi-bin\first.cgi line 1.
Can anyone give me the reason please?