Hi All, I am using the HTTPRequest and HTTPREsponse classes to check whether a website is running fine or not.
I am providing the URL and able to successfully retreive the httpresponse.statuscode, statusdescription, ResponseURI etc. As long as the site is running fine, i get eh status OK(code 200). But for a page that doesnt exist (404) or an internal server error(500) , i am unable to get that code in the status code property. It throws an exception instead and i am able to catch it as a SYSTEM.NET.WEBEXCEPTION . I am unable to progress on this.. Can you kindly provide some inputs. My code basically goes like this. 1) Read from an XML file of URLS that needs to be checked. 2) Create a dataset using ReadXML method. 3) The statuscode, statusdesc, responseuri are addded as columns in the dataset . 4) For each item in dataset , create a request and get the response 5) Gridview. Databind. When i get the response for each URL, ideally i would like to display the status in the grid, but since an exception occurs, nothing happens. Please help me... Regards, Vivek. -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
