Hi,

Go ahead and paste your code or the top part of the script here and we
would be glad to help you more.

And, this is *the* right forum for beginner's questions. This is *NOT* a
stupid question.


-P

-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 10:28 AM
To: 'vishwas bhakit'; beginners-cgi@perl.org
Subject: RE: Premature end of script headers

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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to