Hello SZ, I think so yes, but I'm not very familiar with THttpCli component. I use THttpSrv often but not the client.
But to come back on your error. Can you eather put a try/catch block in all events, or try to debug with the IDE option 'break on delphi exception' on ? I'm pretty sure the original exception is coming from a code fragment of you and is catched by the OnError of the ctrlSocket. I'm not 100% sure of the LastError, I just found it in the comment on top. I never used OnError but still it is used by THttpCli component. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, December 1, 2005, 18:50, Fastream Technologies wrote: > THttpCli(Sender....LastError reads "0" in OnSocketError. > What is unusual about my code is that I do not use a stream nor a file to > get the data. I want to use the OnDocData and OnHeaderData events to read > packet-by-packet. Is this possible? If yes how? > Regards, > SubZ > ----- 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