in reply to How to check if a website is up?
This simplest solution is LWP::Simple
an alternative is using a get:use LWP::Simple; my $url="http://cpan.org"; if (! head($url)) { die "The Server is DOWN!!!!" }
but that would fetch the content of the page. A head call uses the least resources, just telling you weather the machine is responding to that url.if (! get($url)) {
In Section
Seekers of Perl Wisdom