all groups > dotnet clr > june 2005 >
You're in the

dotnet clr

group:

http errors.....


http errors..... AVL
6/30/2005 6:04:02 AM
dotnet clr:
hi,

i need to write a script whcih monitors my web application....

can anyone let me know the way to capture the error whcih i get whenever i'm
uable to connect to the server..
RE: http errors..... Eran Sandler
7/11/2005 2:23:03 AM
What do you actually trying to do?

If its to just monitor a web site and see when its down, the easiest way of
doing that is by using the WebClient class to send the HTTP requests. You
will get a WebException exception when something is down.
WebException.Response will return a WebResposne object that contains the
status code of the error.

Hope this help,
Eran
===========================================
http://dotnetdebug.blogspot.com - Advanced .NET debugging blog
The place for WinDbg, SOS and friends.

Its the easy way of doing.

[quoted text, click to view]
AddThis Social Bookmark Button