Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to check if a website is up?

by nmcfarl (Pilgrim)
on Apr 05, 2004 at 04:14 UTC ( [id://342567]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use LWP::Simple;
    my $url="http://cpan.org";
    if (! head($url)) {
      die "The Server is DOWN!!!!" 
    }
    
  2. or download this
    if (! get($url)) {
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://342567]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found