The following script gets a web page when I run it from the command line. However, when accessing it via a web browser the $content is empty. I am on an i686 Linux and had errors with make test when installing LWP.
Side note: php also will not get html docs. Maybe it is related. Maybe it is a problem with Apache, but I looked over the conf files carefully.
use LWP::Simple;
print "Content-type: text/plain\n\n";
print "Test for LWP::Simple::get\n;
$content=get('http://adcn.com/index.html');
print "Content->$content";
Thanks
In reply to LWP::Simple::get by rww
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |