Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to check if a website is up?

by Vautrin (Hermit)
on Apr 05, 2004 at 04:49 UTC ( [id://342572]=note: print w/replies, xml ) Need Help??


in reply to How to check if a website is up?

Since pings can be used to DOS a server, many sites disable pinging. Thus, if you get an unreachable host by ping, you may still be able to view its web page. Someone mentioned LWP::Simple, which is probably your best bet for web content. For anything else (i.e. mail), use IO::Socket to open up a port on the remote machine. What you'd want to look for would depend on what protocol you were monitoring (i.e. for SMTP you might look for an HELO string)

Want to support the EFF and FSF by buying cool stuff? Click here.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-16 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found