最简单的cgi程序,为什么运行时出错?
#include <stdio.h>
#include <stdlib.h>
void main()
{
printf("Content-type:text/html\n\n");
printf("<html>\n");
printf("000000000\n");
printf("</html>\n");
fflush(stdout);
}
放到web服务器后,访问时出错
错误提示
“CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.”
谁知道为什么会出现这种问题?