[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] "Premature end of script headers" problem


At 11:53 AM 4/25/2003, Geraint Jones wrote:
On Friday 25 April 2003 2:26 pm, Greg Marr wrote:
> try adding:
> use CGI::Carp qw(fatalsToBrowser);
> so that any die() or warn() calls will display a usable error page.

Tried it and nothing different happens. I still get an "Internal Server Error"
page and "Premature end of Script Headers" in the error log.

I forgot about this, but I also have it at the top of my instance script, so that if there are any problems loading the CGI::Application module or the application module, those will be reported there too.

As a last step, eliminate CGI::Application entirely and make sure that you can run this as your instance script:

#!/usr/bin/perl -w

print <<END;
Content-Type: text/html

<HTML>
<HEAD><TITLE>CGI Test</TITLE></HEAD>
<BODY><H1>CGI Test</H1></BODY>
</HTML>
END

--
Greg Marr
suppressed


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.