Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: Premature e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 11 Topic 1402 of 1496
Post > Topic >>

Re: Premature end of script headers

by drummike@[EMAIL PROTECTED] (Mike Williams) Jun 5, 2007 at 09:28 AM

------=_Part_12809_21255430.1181050091776
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

> saran.jegan@[EMAIL PROTECTED]
 wrote:
> > Hello,
> >
> >     i need to know the reasons for this error "Premature end of script
> > headers" i checked with my http header content-type:text/html ,but i
> > had not solved yet..


Often this happens when some error occurs in your code before you output
the
headers.

Try putting this near the top of your script:

use CGI::Carp qw(fatalsToBrowser);

this will redirect fatal errors to the browser window - see perldoc
CGI::Carp for more info.

If neither this nor Sean's suggestion helps post your code so we can take
a
look.

Mike

------=_Part_12809_21255430.1181050091776--
 




 11 Posts in Topic:
Premature end of script headers
saran.jegan@[EMAIL PROTEC  2007-06-05 12:07:32 
Re: Premature end of script headers
sdavis2@[EMAIL PROTECTED]  2007-06-05 09:07:49 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-05 09:28:11 
Re: Premature end of script headers
vendion@[EMAIL PROTECTED]  2008-11-16 15:41:52 
what is the best / latest .CGI to handle safe form parsing?
lhernsen1015@[EMAIL PROTE  2008-11-17 20:04:39 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-08 10:57:32 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-12 10:54:01 
Re: Premature end of script headers
saran.jegan@[EMAIL PROTEC  2007-06-13 06:27:47 
Re: Premature end of script headers
saran.jegan@[EMAIL PROTEC  2007-06-13 09:41:14 
RE: Variable Name Survey Form Input
Hellman.Matthew@[EMAIL PR  2007-06-13 12:45:16 
Re: Premature end of script headers
drummike@[EMAIL PROTECTED  2007-06-13 13:04:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 11:06:37 CST 2008.