Karl Luders 0 Newbie Poster

Hi, everybody:

I am trying to create a little application that would tell me if several websites sharing the same ip are up and running.
But so far this code has not worked because it always returned that the site is running even if I have stopped it, or used a fake url address.

I am just looking for any suggestion on how to reliably query the Webserver and get back a real status response. I just want to know if the sites are up or not. That's it.
Any help will be greatly appreciated.

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick


'Create a web request for site.
Dim myHttpWebRequest As HttpWebRequest = CType(WebRequest.Create("http://mundo.northstarenterprise.com"), HttpWebRequest)
'Get the associated response for the above request.
Dim myHttpWebResponse As HttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse)
If myHttpWebResponse.StatusCode = HttpStatusCode.OK Then
TextBox5.BackColor = Color.Coral
Else
TextBox5.BackColor = Color.Red

myHttpWebResponse.Close()report that the site is up, even