Please, just one copy of the email. Thanks.

On Mon, 6 Dec 2004, Brent Clark wrote:

> In my apache log files, I keep getting this:
> ====================================
> [Mon Dec  6 17:51:35 2004] [error] [client 192.168.111.214] Premature
> end of script headers: /home/abc/cgi-bin/xyz/scripts/agent/logon.pl
 
If you got that far, then Apache is at least attempting to run the 
script, so you don't need to keep looking at the Apache config here.

You've provided none of your Perl code, so it's hard to say what exactly 
the problem might be, but "premature end of script headers" is often a 
hint that you didn't emit a Content-type header before your other 
output. The simple fix for this is to have a line like this before any 
other print statements in your code:

  print "Content-type: text/html\n\n";

But if you're using CGI.pm for content generation, it can do this for 
you, invisibly, before sending out any output. As it isn't clear how 
you're sending out your data, I won't get into specifics, but if nothing 
else try adding the print statement above and see if it helps.

If you're still stuck, please send a short script that demonstrates the 
problem.
 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to