 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ron Guest
|
Posted: Sat Feb 04, 2006 4:02 pm Post subject: still issue with TIdHTTP Post |
|
|
D7, Indy 9.00.16, XP SP1
I am setting a ConnectTimeout for TIdHTTP component:
vHTTP := TIdHTTP.Create(frmMain);
vHTTP.ConnectTimeout := 2000;
vHTTP.HandleRedirects := True;
vHTTP.Post(FURL, vSL);
When there is no internet connection available, and i do Step Into in the
IDE on the last statement (Post),
it takes significant time (sure more then desired 2 seconds), maybe about
half a minute, and then popup
establish internet connection dialog.
Is it possible to avoid this and always raise an exception on Post if no
connection is available?
Thanx alot. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Feb 07, 2006 2:02 am Post subject: Re: still issue with TIdHTTP Post |
|
|
"Ron" <nospam@please> wrote:
That is a very old build of Indy 9. You should consider upgrading to the latest 9.0.50 snapshot to get all of the latest fixes and features.
| Quote: | Is it possible to avoid this and always raise an
exception on Post if no connection is available?
|
Indy has no concept of that dialog. The OS itself is in control of it. The only way to avoid the dialog is to manually detect the presence, or lack, of a valid Internet connection yourself before you call Post().
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
|
|