Hello SZ, I checked the source, and this event if fired when FCtrlSocket.OnError fires. So probably you have an exeption in your code in one of the event handlers.
I think you can get the error with: THttpCli(Sender).CtrlSocket.LastError; But pretty sure it comes from one of the event handlers. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, December 1, 2005, 13:57, Fastream Technologies wrote: > Sorry, No, not the exception but the event OnSocketError. This is > TNotifyEvent and has no parameters except sender. > Regards, > SZ > ----- Original Message ----- > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Thursday, December 01, 2005 12:18 PM > Subject: Re: [twsocket] Problem with THttpCli >> Hello SZ, >> >>> It gives no exception but throws ESocketError just after DNSLookup which >>> is >>> successful. >> >> Do you mean ESocketException ? >> What is the error ? >> >> --- >> Rgds, Wilfried [TeamICS] >> http://www.overbyte.be/eng/overbyte/teamics.html >> http://www.mestdagh.biz >> >> Wednesday, November 30, 2005, 15:21, Fastream Technologies wrote: >> >>> Hello, >> >>> I chose the second method (THttpCli) but the below code fails in a >>> thread: >> >>> HTTPClient = new THttpCli(NULL); >>> HTTPClient->MultiThreaded = true; >>> HTTPClient->FollowRelocation = false; >>> HTTPClient->NoCache = false; >>> HTTPClient->RcvdStream = NULL; >>> HTTPClient->SendStream = NULL; >>> // all the events are assigned here >> >> HTTPClient->>URL = "http://" + targetServerIP + ":" + targetServerPort + >>> FPath; >> >>> if(FParams.Length()) >>> HTTPClient->URL += "?" + FParams; >> >>> try >>> { >>> HTTPClient->GetASync(); >>> } >>> catch(... >> >>> It gives no exception but throws ESocketError just after DNSLookup which >>> is >>> successful. I tried with www.intel.com and the IE works just fine from >>> here. >>> I have a proxy setting for IE but that's optional and Mozilla works >>> without >>> proxy ok. I also tried to point socketspy to intel.com and used browser >>> to >>> access localhost:8000 (the port socketspy runs on) which worked but >>> pointing >>> HTTPClient did not. >> >>> Any help would be appreciated. I am using the November (downloaded today) >>> beta of ICS with -yet- no SSL. >> >>> Best Regards, >> >>> SZ >> >> >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://www.elists.org/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be