Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-10-17 01:14 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (218 votes). Check out past polls.