[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] unknown Error message



At 02.43 +0100 98-11-10, Patrick Beart wrote:
>I'm getting a "Premature end of script headers" error in the freeware PERL
>script that I'm trying to run for the client page. What does this mean?
>What would you recommend that I use (or do) to troubleshoot this error?

That CGI error message means that the HTTP header wasn't complete. The top
of your output should look something like this:

Content-type: text/html
Expires: 0

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
...

Note the blank line between HTTP header and HTML data.

If the script ends without printing a complete header, you can get the
above error message. One common situation is that Perl can't compile the
program, but stops with an error message. Your browser doesn't understand
the message, and gives you the above. Have you tried running it manually,
just for checking that it compiles and gives expected output?


___Carl_Johan_Berglund_________________________
   Adverb Information
   carl.johan.berglund@adverb.se
   http://www.adverb.se/



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch