 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Cornie Guest
|
Posted: Thu Apr 19, 2007 1:56 pm Post subject: Howdo I "ping" and web address |
|
|
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.
I would appreciate any help and thanks for a wonderful set of components
and this forum that makes my life a lot easier. I am a novice in the
Internet area, so thank you for all the help and hints. I appreciate
the time and effort everybody put into this.
Regards
Cornie van Schoor
InfoStar Software
South Africa |
|
| Back to top |
|
 |
MikeR Guest
|
Posted: Thu Apr 19, 2007 7:01 pm Post subject: Re: Howdo I "ping" and web address |
|
|
Cornie wrote:
| Quote: | 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.
I would appreciate any help and thanks for a wonderful set of components
and this forum that makes my life a lot easier. I am a novice in the
Internet area, so thank you for all the help and hints. I appreciate
the time and effort everybody put into this.
Regards
Cornie van Schoor
InfoStar Software
South Africa
Why not just try to download the file, and handle the failure if it's not there. Is a |
ping less costly?
Mike |
|
| Back to top |
|
 |
David Zimmerman Guest
|
Posted: Thu Apr 19, 2007 7:44 pm Post subject: Re: Howdo I "ping" and web address |
|
|
MikeR wrote:
| Quote: | 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. |
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Thu Apr 19, 2007 9:07 pm Post subject: Re: Howdo I "ping" and web address |
|
|
| Quote: | 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.
|
...and ICMP ping is hopless, being blocked by many firewalls. If only port
80 is open, then only a TCP connect on 80 will give any clue. If you are
going to do a connect, might as well attempt the HTTP download.
Rgds,
Martin |
|
| Back to top |
|
 |
Ken Davies Guest
|
Posted: Thu Apr 19, 2007 9:17 pm Post subject: Re: Howdo I "ping" and web address |
|
|
I'm looking for a solution to this myself. Slightly different problem in
that our ISP is messing us around and our site is up and down like a yo-yo
so I'd like to write a routine to ping the site every two minutes or so. The
problem I have is that the Indy ping works fine in XP but fails in Vista.
Any solutions?
TIA
Ken Davies
"Cornie" <cornievs (AT) gmail (DOT) com> wrote in message
news:46272eca (AT) newsgroups (DOT) borland.com...
| Quote: | 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.
I would appreciate any help and thanks for a wonderful set of components
and this forum that makes my life a lot easier. I am a novice in the
Internet area, so thank you for all the help and hints. I appreciate the
time and effort everybody put into this.
Regards
Cornie van Schoor
InfoStar Software
South Africa |
|
|
| Back to top |
|
 |
Cornie Guest
|
Posted: Thu May 03, 2007 4:34 am Post subject: Re: Howdo I "ping" and web address |
|
|
I am really a novice in this. Most of my code has been created from
examples from others, with me understanding the begin if .. else end parts!
I think Martin Jones reply to my issue is an indication where to look
for your solution on Vista. I know the default "rights" has change on
Vista on which ports is open etc.
Due to some other work I have not started sorting out my problem, but
for start I will first check if there is a valid RAS connection and then
try a download. I will have to check the cost, because I need the
procedure to return very quickly. I know I should run it in a thread,
but my experience with that is to limited.
Regards
Cornie
Ken Davies wrote:
| Quote: | I'm looking for a solution to this myself. Slightly different problem in
that our ISP is messing us around and our site is up and down like a
yo-yo so I'd like to write a routine to ping the site every two minutes
or so. The problem I have is that the Indy ping works fine in XP but
fails in Vista. Any solutions?
TIA
Ken Davies
"Cornie" <cornievs (AT) gmail (DOT) com> wrote in message
news:46272eca (AT) newsgroups (DOT) borland.com...
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.
I would appreciate any help and thanks for a wonderful set of
components and this forum that makes my life a lot easier. I am a
novice in the Internet area, so thank you for all the help and hints.
I appreciate the time and effort everybody put into this.
Regards
Cornie van Schoor
InfoStar Software
South Africa
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu May 03, 2007 5:54 am Post subject: Re: Howdo I "ping" and web address |
|
|
"Ken Davies" <krdavies (AT) ivojo (DOT) co.uk> wrote in message
news:4627969e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | The problem I have is that the Indy ping works fine in XP
but fails in Vista.
|
Indy's ping component required admin rights. This is because of its
use of RAW sockets.
Gambit |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|