Hello, Now I need to code the POST routine for the load-balancer but there is a big problem. I can get the data client sends in OnPostedData but how will I have my THttpCli->PostAsync() to not use file or stream and even more important to wait for data from the client before proceeding to Send()?
Best Regards, SZ ----- Original Message ----- From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Thursday, December 01, 2005 7:50 PM Subject: Re: [twsocket] Problem with THttpCli > 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 -- 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