BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

still issue with TIdHTTP Post

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Ron
Guest





PostPosted: Sat Feb 04, 2006 4:02 pm    Post subject: still issue with TIdHTTP Post Reply with quote



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





PostPosted: Tue Feb 07, 2006 2:02 am    Post subject: Re: still issue with TIdHTTP Post Reply with quote



"Ron" <nospam@please> wrote:
Quote:
Indy 9.00.16

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.