Difference between revisions of "Talk:CGI Web Programming"
From Lazarus wiki
Jump to navigationJump to search (Created page with "<syntaxhighlight> // output legal http page writeln('Content-Type:text/html',#10#13); </syntaxhighlight> That should probably be: <syntaxhighlight> writeln('Content-Type:tex...") |
m (Fixed syntax highlighting) |
||
Line 1: | Line 1: | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="pascal"> |
// output legal http page | // output legal http page | ||
writeln('Content-Type:text/html',#10#13); | writeln('Content-Type:text/html',#10#13); | ||
Line 6: | Line 6: | ||
That should probably be: | That should probably be: | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="pascal"> |
writeln('Content-Type:text/html',LineEnding,LineEnding); | writeln('Content-Type:text/html',LineEnding,LineEnding); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
After content-type there must be an empty line, otherwise you get a "premature end of script headers" error. | After content-type there must be an empty line, otherwise you get a "premature end of script headers" error. |
Latest revision as of 00:15, 11 February 2020
// 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.