> I'm having some trouble using the THttpCli component from the ICS suite. > I'm using this component to simply download a document off a web site > (the "document" might be a configuration file or a compressed DLL file > or whatever). It mostly works but some times it just stops (gets stuck > in a state - the last OnChangeState message I'm getting is > httpDnsLookupDone or httpDnsLookup) and then nothing happens. My > application's GUI doesn't get stuck because Application's message pump > is working, but the download doesn't finish ether. Or, if something does > happen, I know nothing about it... Please note I'm using "GetAsync" to > get my document.
First of all, be sure to use latest ICS version downloaded from /my/ webite, and even preferably the last beta which contains all fixes since latest release. Please goto http://www.overbyte.be to download. > in a state - the last OnChangeState message I'm getting is > httpDnsLookupDone or httpDnsLookup) and then nothing happens. Name resolution is done (converting the website hostname to IP address). The next stage is to connect. It seems that connection doesn't occur whitout explicit deny from the target website. This may be caused by a target website which is overflown. You may use a TTimer to implement a timeout feature and call THttpCli.Abort to make the component stop waiting for the next thing to do. If you need more help, /please/ use ICS support mailing list. There is a team devoted to answering your questions ("TeamICS") and about one hundred peoples sharing their knowledges. Thanks. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "Cosmin Prund" <[EMAIL PROTECTED]> To: "'Delphi-Talk Discussion List'" <delphi-talk@elists.org> Sent: Tuesday, November 07, 2006 12:31 PM Subject: Help on ICS's HTTP client component > Hello everyone. > > I'm having some trouble using the THttpCli component from the ICS suite. > I'm using this component to simply download a document off a web site > (the "document" might be a configuration file or a compressed DLL file > or whatever). It mostly works but some times it just stops (gets stuck > in a state - the last OnChangeState message I'm getting is > httpDnsLookupDone or httpDnsLookup) and then nothing happens. My > application's GUI doesn't get stuck because Application's message pump > is working, but the download doesn't finish ether. Or, if something does > happen, I know nothing about it... Please note I'm using "GetAsync" to > get my document. > > I have posted the unit where all my code resides here: > http://activari.sediu.ro/mail/UWebUpDown.pas > Please note: the code will not compile as it requires a few other units, > but all downloading code is there. > > Thanks, > Cosmin Prund > __________________________________________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://www.elists.org/mailman/listinfo/delphi-talk __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk