|
-
Jan 9th, 2007, 09:36 PM
#1
Thread Starter
Fanatic Member
ping website
hello guys! how can i ping a particular website? becuase i think Ping class from System.Net.Networkinformation is not designed tp ping Uri but im not sure. any help please.
-
Jan 9th, 2007, 09:45 PM
#2
Re: ping website
You don't ping a URL. You ping a machine, hence the fact that you specify an IP address. What exactly is it that you want to know? Whether a particular Web page address is valid? If so then I would guess that WebClient.OpenRead would do the job. I'm not sure but I would expect that it would either throw an exception or return a null reference if the address was not valid.
-
Jan 9th, 2007, 09:50 PM
#3
Thread Starter
Fanatic Member
Re: ping website
What if the Machine is up/powered on but the Web Service (IIS) is not available? what im trying to do is to check whether the website is available or not. i'll Webclient.OpenRead. Thanks for that anyway.
-
Jan 17th, 2007, 10:58 AM
#4
Re: ping website
Use the HttpWebRequest/WebRequest class to make a call to the URL of the machine or IP address. Then look at the reply.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|