MorayJ has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I'm having a little difficulty understanding an aspect of either LWP::Simple or web delivery and hoped for some enlightenment
I am using LWP::Simple and the following code snippet:
$content = head("$link"); if ($content) { push (@links, $_,$link,$node); };
This then works with external web pages, but the webpages on my system delivered from work don't seem to return headers. I took the stick I run perl on home and tried on my home machine to the company pages, and they still didn't return headers. I wanted to know if it was because I was on the same network, which I'm not at home.
If I change from 'head' to 'get' then it works - but I don't want to download the full pages each time.
Does this make sense as a question, or does anyone understand what's going on?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: LWP::Simple - so they say!
by Corion (Patriarch) on Apr 20, 2012 at 09:20 UTC | |
Re: LWP::Simple - so they say!
by bart (Canon) on Apr 20, 2012 at 11:26 UTC | |
by Anonymous Monk on Apr 20, 2012 at 11:52 UTC | |
Re: LWP::Simple - so they say!
by JavaFan (Canon) on Apr 20, 2012 at 10:33 UTC | |
Re: LWP::Simple - so they say!
by Anonymous Monk on Apr 20, 2012 at 09:21 UTC | |
Re: LWP::Simple - so they say!
by MorayJ (Beadle) on Apr 20, 2012 at 12:03 UTC |