Quick CGI question: doing nothing?

David Bovill david at openpartnership.net
Tue Mar 27 10:00:04 EDT 2007


OK - thanks guys that fixed it:

on startup
   put "Hello world!" into buffer

   -- put "HTTP/1.0 204 my descriptive text" & crlf
   put "Status: 204 my descriptive text" & CR
   put "Content-Type: text/html" & CR
   put "Content-Length: "& length(buffer) & crlf & crlf
   put buffer
   quit
end startup

I guess the "Status:" part of the header applies to other status responses?

NB - is there a rhyme and a reason to when to use CR and when CRLF - it
seems pretty well interchangeable on a Linux server, are there any "buts"?
Sam goes with using "write buffer to stdout" or just "put buffer" - any
actual differences?



More information about the use-livecode mailing list