For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > February 2005 > RE: Premature end of script headers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: Premature end of script headers
Bob Showalter

2005-02-08, 3:55 pm

vishwas bhakit wrote:
> hello,
>
> I am getting following error.
>
> Premature end of script headers
>
> Can anybody plz tell me
> what is the cause of this.


When the webserver runs your CGI script, it parses the output, looking for
the MIME headers, followed by a blank line, followed by the response body.
It will then add some headers of its own and send the complete response back
to the client.

This error occurs when your script terminates before the end of the headers
is seen. Either your script isn't outputting headers correctly, or it's
dying for some reason before the headers have been fully output.

Here's a more detailed treatment:
http://www.htmlhelp.org/faq/cgifaq.4.html#3
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com