Gossamer Forum
Home : General : Perl Programming :

Premature end of script headers

Quote Reply
Premature end of script headers
I believe that my host has tried to resolve the problem with executing Perl scripts, but now get a new error, the script is as follows, along with the log file that is generated from the server. As far as I can see there is nothing wrong from this basic script and debugs all ok, any suggestions would be much appreciated.

Code:
#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "</BODY></HTML>";
From the server error log
[Sun May 16 23:48:29 2004] [error] [client 219.3.228.42] Premature end of
script headers:
/home/fhlinux196/c/causeandfx.org.uk/user/htdocs/cgi-bin/hello.cgi
Subject Author Views Date
Thread Premature end of script headers TokyoJon 6599 May 16, 2004, 4:26 PM
Post Re: [TokyoJon] Premature end of script headers
Andy 6416 May 17, 2004, 2:13 AM
Thread Re: [TokyoJon] Premature end of script headers
Chaz 6424 May 17, 2004, 7:05 AM
Thread Re: [Chaz] Premature end of script headers
TokyoJon 6433 May 17, 2004, 7:35 AM
Post Re: [TokyoJon] Premature end of script headers
Andy 6414 May 17, 2004, 7:43 AM