http://www.perlmonks.org?node_id=966140

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?