Talk:CGI Web Programming
From Free Pascal wiki
Jump to navigationJump to search
// output legal http page
writeln('Content-Type:text/html',#10#13);
That should probably be:
writeln('Content-Type:text/html',LineEnding,LineEnding);
After content-type there must be an empty line, otherwise you get a "premature end of script headers" error.