How to check the URL is valid?

Hi,Our company has many websites (URL), how to build an agent to run schedulely to check when a URL (web server) is down? And get email notice to see the reasons when a website is not working (down)?

For example; I can build a view, each document of this view contains a website (URL) text string, then an agent will run against these view (each document), try to open an URL, if there is something wrong with that webServer(URL will not works), then get the reason of why, and send a email notice.

Thanks for any response?

Subject: Here’s one way you could try…

In an agent use OLE to instantiate Internet Explorer i.e. CreateObject(“InternetExplorer.Application”). Use the Navigate method to go to the web site in question, and loop until either the Busy property returns false or you reach the timeout (e.g. if it hasn’t loaded in 30 seconds or whatever you assume the site is down). Search MSDN for details on the various methods and properties.

Subject: keeping it in notes…NotesDatabase.GetDocumentByUrl may be helpful

if you need something in Notes, you can try the NotesDatabase.GetDocumentByUrl method.

You may want to try it with your network cable unplugged to see if you get a result you are looking for.

-Kyle Huang