David,

print "Content-Type: text/html\n\n"; # Inaccurate
print "Content-type: text/html\n\n"; # Accurate

The difference is in case sensitivity.  Notice the word '-type:'

Kristofer

--- david Greenhalgh <[EMAIL PROTECTED]> wrote:
> Can anyone tell me what the error message "Premature end of script 
> headers: $Lib /path/to/cgi" means in the httpd error_log file?
> 
> This is one of those "Runs on the command line but not in the
> browser" 
> questions.
> 
> Permissions are set to 755 and a bit commenting out and simple
> testing 
> shows that the script doesn't even get past:
> 
> #!/usr/bin/perl -wT
> use strict;
> use CGI ':standard';
> use DBI;
> 
> print "Content-Type: text/html\n\n";
> print "test"
> 
> # Everything in the real script commented out
> 
> I'm writing in BBEdit 7, doing convert to ASCII before saving, and 
> saving with file creator set to Generic Text File and Line Breaks set
> 
> to UNIX and save State set to None.
> 
> Other scripts written in the same editor are working OK.
> 
> Dave
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=====
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d s+:++ a C++ UL++ US+ P+++ L++ 
W+++ w PS PE t++ b+ G e r+++ z++++
------END GEEK CODE BLOCK------

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to