Edu
2007-04-25 16:25:16 UTC
Hi,
I was trying a CGI built with C in Apache2.Firstly, I forgot the
Content-type header and got the error (in apache's error.log):
malformed header from script. Bad header=<html>
Then I modified the code, adding the Content-type line:
printf("Content-type: text/html\n\n");
printf("<html>\n");
printf(" <HEAD>\n");
(...)
compiled, replaced the binary...and I still got:
malformed header from script. Bad header=<html>
I also tried to restart the server, but it was the same.
What's wrong?
I was trying a CGI built with C in Apache2.Firstly, I forgot the
Content-type header and got the error (in apache's error.log):
malformed header from script. Bad header=<html>
Then I modified the code, adding the Content-type line:
printf("Content-type: text/html\n\n");
printf("<html>\n");
printf(" <HEAD>\n");
(...)
compiled, replaced the binary...and I still got:
malformed header from script. Bad header=<html>
I also tried to restart the server, but it was the same.
What's wrong?