P
Paul E. Schoen
I am trying to set up a webspace so I can use CGI, and I'm getting errors
and/or it is not behaving as it should using IE8 or Firefox. I read the FAQ
and it suggests that this should be asked in
comp.infosystems.www.authoring.CGI, but that NG has been removed. So, at the
very least, please change the perl FAQ to reflect this and provide a NG that
is appropriate.
I have a simple perl script which I copied from documentation here:
http://blog.dreamhosters.com/kbase/index.cgi?area=144
#!/usr/bin/perl
use CGI;
my $query= new CGI;
print $query->header;
print "hello people in my head\n";
Here are the problems I'm having:
On the dreamhost server http://www.pauleschoen.com/cgi-bin/first.pl, I get
Internal Server Error 500 and the error log reports "Premature end of script
headers:". On my other server, www.smart.net/~pstech/cgi-bin/first.pl, the
IE8 browser tries to download the file, and Firefox just shows the source
code text. If I use telnet to execute the script in smart.net, it seems to
echo the correct header and text. I have also used the pico editor to
eliminate possible problems with CR+LF newlines. I have not been able to log
on to the dreamhost server with telnet.
I have tried changing the permissions as recommended, and I have the
..htaccess file configured as:
Options +ExecCGI
My next step will probably be to contact the support or community
discussions for these servers, but I was hoping that someone here might be
able to help. I am planning to do some less trivial programming in Perl once
I get this simple script working as it should.
Thanks!
Paul
and/or it is not behaving as it should using IE8 or Firefox. I read the FAQ
and it suggests that this should be asked in
comp.infosystems.www.authoring.CGI, but that NG has been removed. So, at the
very least, please change the perl FAQ to reflect this and provide a NG that
is appropriate.
I have a simple perl script which I copied from documentation here:
http://blog.dreamhosters.com/kbase/index.cgi?area=144
#!/usr/bin/perl
use CGI;
my $query= new CGI;
print $query->header;
print "hello people in my head\n";
Here are the problems I'm having:
On the dreamhost server http://www.pauleschoen.com/cgi-bin/first.pl, I get
Internal Server Error 500 and the error log reports "Premature end of script
headers:". On my other server, www.smart.net/~pstech/cgi-bin/first.pl, the
IE8 browser tries to download the file, and Firefox just shows the source
code text. If I use telnet to execute the script in smart.net, it seems to
echo the correct header and text. I have also used the pico editor to
eliminate possible problems with CR+LF newlines. I have not been able to log
on to the dreamhost server with telnet.
I have tried changing the permissions as recommended, and I have the
..htaccess file configured as:
Options +ExecCGI
My next step will probably be to contact the support or community
discussions for these servers, but I was hoping that someone here might be
able to help. I am planning to do some less trivial programming in Perl once
I get this simple script working as it should.
Thanks!
Paul