Advertisement
beezing

Minimal Pascal CGI code

Feb 8th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. program PascalCGITest;
  2.  
  3. const
  4.   EOL = #13#10; // new line char
  5.  
  6. begin
  7.   // new line character MUST be explicit
  8.   writeln('content-type: text/html;',EOL);
  9.   writeln('<!doctype html>');
  10.   // HTML content here  
  11.   writeln('<html><body><h1>My pascal script works!</h1></body></html>');
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement