Linux cgi engine problem : Premature end of script headers

Dave Cragg dcragg at lacscentre.co.uk
Thu Apr 29 06:52:36 EDT 2004


At 10:38 am +0200 29/4/04, jbv wrote:
>Hi all,
>
>Still with my Rev cgi installation problem.
>
>Just checked the server error log, and here's what I get
>everytime I try to use a cgi script :
>Premature end of script headers: /home/httpd/html/cgi-bin/hello.cgi
>
>and here's the test script :
>
>#!revolution
>
>on startup
>put "Content-Type: text/plain" & cr
>put "Hello world!"
>end startup
>

You need an extra cr between the headers and the "message entity".

#!revolution

on startup
put "Content-Type: text/plain" & cr
put cr
put "Hello world!"
end startup

Cheers
Dave


More information about the use-livecode mailing list