M
MarkusJNZ
Hi, I need to write some code to ensure that a website is still
online.
I was just going to write some code (Using System.NET webrequest) to
retrieve the HTML from a website and if the length was 0 then the
website was unavailable;
However, if I get a 404 error then obviously the above would not work.
I also thought of just using a ping but again some websites may be
online but not return a ping request (e.g. Microsoft).
Does anyone have any better ideas about how I can definately tell if a
website is available?
Thanks
Markus
online.
I was just going to write some code (Using System.NET webrequest) to
retrieve the HTML from a website and if the length was 0 then the
website was unavailable;
However, if I get a 404 error then obviously the above would not work.
I also thought of just using a ping but again some websites may be
online but not return a ping request (e.g. Microsoft).
Does anyone have any better ideas about how I can definately tell if a
website is available?
Thanks
Markus