Possible Duplicate:
Best way to test if a website is alive from a C# applicaiton
I need to find website is running in c# I am passing the website on port 80.
I am using the following code in c#
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://tester.co.tt");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
I have given invalid website address, then also i am getting response is OK.
How can we check website is running?
I am getting the response.StatusCode is OK. when i browse the site,it is not avialable.