Reputation: 14204
I am playing around with Silverlight. Currently, as a test to see if I like the technology, I'm building a utility. This utility simply checks to see if my web sites are up and running.
With Silverlight, C#, how do I ping a website (like www.google.com) to see if it is available?
Thank you
Upvotes: 0
Views: 217
Reputation: 120420
You also have to fix up some sort of cross-domain permissions with strategically placed clientaccesspolicy.xml files to allow a Silverlight app running in one domain access to the other domains.
http://msdn.microsoft.com/en-us/library/cc645032%28VS.95%29.aspx
Upvotes: 2
Reputation: 272247
In the simplest case, can you make a TCP connection on port 80 (the default HTTP port) and issue a GET or HEAD request ?
Note that determining if a site is up is a very subjective question. e.g.
etc.
Upvotes: 1