I have a script that works OK from the command line but bombs from the web server:
#!/usr/bin/perl
use LWP::Simple;
$url = '$content = get($url);
print "$content";
Here is the server error_log:
httpd: [Wed Nov 15 00:11:52 2000] [error] [client xxx.xxx.xxx.xxx] malformed header from script. Bad header=<HTML><BODY>: /home/httpd/cgi-bin/script.pl
Can someone please help.
Thanks.
#!/usr/bin/perl
use LWP::Simple;
$url = '$content = get($url);
print "$content";
Here is the server error_log:
httpd: [Wed Nov 15 00:11:52 2000] [error] [client xxx.xxx.xxx.xxx] malformed header from script. Bad header=<HTML><BODY>: /home/httpd/cgi-bin/script.pl
Can someone please help.
Thanks.