Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Apr : Re: Howdo I "ping" and web address

www.cryer.info
Managed Newsgroup Archive

Re: Howdo I "ping" and web address

Subject:Re: Howdo I "ping" and web address
Posted by:"David Zimmerman" (f..@junk.bar)
Date:Thu, 19 Apr 2007 10:44:19

MikeR wrote:
> Cornie wrote:
>> I would like to check if a website is available and then do a download
>> from there.  I have sorted the download part out, but want to check
>> regally to see if the web site is available.  My clients mostly use
>> dial-up connections, so I want to "ping" the web site about every 5
>> min and if found then download the file.

> Why not just try to download the file, and handle the failure if it's
> not there. Is a ping less costly?

And the website could go down after the successful ping and before the
download attempt.  The download has to tolerate the website being down
so why ping.

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive