Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to check if a website is up?

by inman (Curate)
on Apr 05, 2004 at 09:33 UTC ( [id://342599]=note: print w/replies, xml ) Need Help??


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

You need to conduct a series of positive tests. As already mentioned, LWP (and it's derivatives) are what you want to use to write your tests. You will need to write a series of tests if you want to determine whether the whole of a website is up and running (rather than just a simple page).

I have previously used Test::Simple to build a set of tests that excercise various parts of a website. Example tests include:

  • Get the homepage - as the user would see it. This tests a load balancer if present.
  • Get pages from servers directly (without a load balancer)
  • Login and retrieve the appropriate session cookies.
  • Get pages that are only returned for logged in users.
  • Submit a search to the search engine and verify that an acceptable number of results were returned.

Typically you try and test individual pieces of functionality so that you can pin-point the failure. This is especially important where a website relies on multiple hardware and software components performing together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-26 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found