rww has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple::get
by cfreak (Chaplain) on Oct 23, 2001 at 00:28 UTC | |
|
Re: LWP::Simple::get
by sm3g (Hermit) on Oct 23, 2001 at 02:18 UTC | |
|
Re: LWP::Simple::get
by mr_dont (Beadle) on Oct 23, 2001 at 00:53 UTC |