Talk:CGI Web Programming

From Lazarus wiki
Revision as of 01:15, 11 February 2020 by Trev (talk | contribs) (Fixed syntax highlighting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.