Premature end of script headers
As anyone dealing with Perl .cgi scripts may have run into the dread premature end of script headers error, I thought I'd post the above link from htmlfixit.com. The title is apt: "Server error messages, the bane of web developers everywhere".
That page, intelligibly written for those of us who are only somewhat versed in Perl coding, helped me to debug a script recently. Actually, the answer wasn't on the page, but it did give me the hint/clue that solved my problem. :)
And this is terrific for debugging errors (put it right under the path to Perl). What it does it send the error message to the browser.
use CGI::Carp qw(fatalsToBrowser);
20 Comments to "Premature end of script headers"
Have your say ...
First-time comments will be held for moderation (but comments are appreciated). Otherwise, just be courteous. If your name is a bunch of keywords, your comment will be deleted. Don't post links unless highly pertinent. Posters must be 16 or older.