Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Answer: What causes 'premature end of script headers'?

by jhourcle (Prior)
on Mar 06, 2005 at 20:56 UTC ( #437084=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > What causes 'premature end of script headers'? - Answer contributed by jhourcle

Something printing to STDOUT before the headers have been sent, and a blank line has also been sent to mark the end of the headers, or an incorrectly formatted header was sent. You can debug these issues by printing immediately print "Content-type: text/plain\n\n"; and looking at the output that is generated.

If you're using CGIwrap, you can use the debugging mode to see what content was generated, including the headers. suEXEC can also provide some debugging help.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2018-07-18 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (383 votes). Check out past polls.

    Notices?