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

RE: [cobalt-developers] perl script Internal Server Error



-----Original Message-----
From: Jeff Zanzinger [mailto:webmaster@xxxxxxxxxxxxxxxx]
Sent: Friday, January 24, 2003 10:22 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] perl script Internal Server Error


Hello,

I'm trying to get a simple perl script to run on a newly installed raq4.


I FTP'd test.pl to /web/cgi-bin/test.pl  and the file contents are:  

#!/usr/bin/perl -w
print "hello perl";

I type http://209.114.220.30/cgi-bin/test.pl in a browser and it returns
an Internal Server Error.

Permissions on file are okay and transfer was done in ASCII.

Any help on this simple problem is greatly appreciated!


Jeff Zanzinger, Data Connection, Inc.
_______________________________________________

It is because you are NOT printing a header along with your output.
You will need the following:

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

Add that before your hello world.