CGI magic help

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Don Calfa
Date:  
Subject: CGI magic help
Thanks all. The problem was actually in the script itself. If I had
the code immediately after:

#!/usr/bin/perl
print <<EOF;
Content-type: text/html

EOF

I got the error except in Windows.


#!/usr/bin/perl

print <<EOF;
Content-type: text/html

EOF

was fine.


wrote:

>On Tue, 3 Jun 2003, Don Calfa wrote:
>
>
>
>>ErrorLog /Volume2m/Websites/Logfiles/website3.com/error_log
>>LogLevel debug
>>ScriptAlias /cgi-bin/ "/Volume2m/Websites/website3.com/cgi-bin/"
>></VirtualHost>
>>
>>I have the scripts located in the correct directory, permissions are set
>>to read and execute.
>>All I get is:
>>
>>
>> Server error!
>>
>>    The server encountered an internal error and was unable to complete
>>your request.

>>
>>    Error message:
>>Premature end of script headers: test2.pl

>>
>>
>
>If using an sh-bang interpreter (like #!/usr/bin/perl) make sure it
>has the right path.
>
>Also check the log file to see if it has better error description.
>
>If using suexec, then look at your suexec.log (or cgi.log). It is usually
>very informative.
>
> Jeremy C. Reed
> http://www.reedmedia.net/
>
>---------------------------------------------------
>PLUG-discuss mailing list -
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>


--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/