That actually means that it is executing the CGI program which is good. If it was not executing the CGI program it would display the source code instead, just like any other text file. Can you execute the script on the command line and have it run with no errors? If it runs with no errors on the command line but gives you a message about premature end of headers when you execute it through Apache it usually can be resolved by looking at the first couple of lines of the script (print statements). You may have to put this line as the first output line:
print "Content-Type: text/html\n\n";
Also, in your error message you have "cgi-nin" as part of the directory path. Is that a typo?
[ July 18, 2002: Message edited by: VoidMain ]