AspDotNetAtoms.com provides daily updates on ASP.NET Tutorials, Programming Resources, .NET Articles, Authors and more.

Categories

Recent Posts

Testing Web Sites with HttpWebRequest : Eric Smith

Saturday, July 26 2008

As a third type of verification, I check certain Web sites to make sure that the server is up, running, and not generating any Web errors. In some cases, Microsoft's Web server produces a Web page even if it has an error. If you don't check the content of that page, it might look as though the server is actually up and running. As a result, I also have a type of check that simulates a browser visiting the page and reading the content. I use the HttpWebRequest and HttpWebResponse classes, as well as some other network I/O code. The following code loops through some good addresses and one bad address to read the TITLE tag from each page:...

Read More:
Testing Web Sites with HttpWebRequest : Eric Smith
Also See:
Using CLR to access .NET functions in SQL Server : Mark Smith
ASP.NET Security [Part I] : Joydip Kanjilal
ASP.NET XmlProvider Library :
ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks : Stephen Walther on ASP.NET MVC
Pre-compiling the Site : Marco Bellinaso

Post your comment

Comment