Board index » delphi » Simply way which helps avoid freezing application when idHttp.get doesn't work

Simply way which helps avoid freezing application when idHttp.get doesn't work


2006-04-19 10:06:45 PM
delphi142
I have a little problem.
I use TidHttp and its method get but when web site doesn't exist at the
moment the application "freeze" for a few second. I know I could put
this action inside the thread and the problem with freezing would be
solved but I am looking for something simpler. AntiFreeze doesn't work
as well.... For some reason I can not use ping... How can I check
whether the web site exist ( and avoid freezing application) before
using IdHttp.Get ? Thanks for any advice.
Piotr W.
 
 

Re:Simply way which helps avoid freezing application when idHttp.get doesn't work

Quote
For some reason I can not use ping... How can I check
whether the web site exist
You could use TIdTCPClient and call Connect procedure with a decent
timeout.
Jake
www.launchpivot.com
 

Re:Simply way which helps avoid freezing application when idHttp.get doesn't work

Hoi Piotr
If you would like more answers to your question, repost your question on
the Borland news server to make everybody see it.
Take a look here:
<tinyurl.com/8m5nw>
which links to
<delphi.wikicities.com/wiki/Delphi_Newsgroups>