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

Answer: How to get over 'premature end of script headers' in Apache?

by Anonymous Monk
on Oct 03, 2003 at 07:58 UTC ( #296174=categorized answer: print w/replies, xml ) Need Help??

Q&A > debugging > How to get over 'premature end of script headers' in Apache? - Answer contributed by Anonymous Monk

Make sure there's an empty line after the HTTP headers (such as "Content-type:") and before the body text. For example, print "Content-type: text/html\n\n";

Forgetting that empty line will result in a "500 Server Error" being sent to the client, and a "Premature end of script header" message being written to the server error log, so it could be the source of your problem.

  • Comment on Answer: How to get over 'premature end of script headers' in Apache?
  • Download Code
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 meditating upon the Monastery: (6)
As of 2018-02-25 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (312 votes). Check out past polls.

    Notices?