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 reply to Re: How to check if a website is up?
by nmcfarl
in thread How to check if a website is up?
by anev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |