Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Fastream Technologies
I thought I would not need to call ThreadAttach when I create THttpCli instance in thread context. Other than that, it is so simple code I see no problem but it does not work despite that...;( Regards, SZ - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support m

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Arno Garrels
Fastream Technologies wrote: > I thought I would not need to call ThreadAttach when I create THttpCli > instance in thread context. Other than that, it is so simple code I see no > problem but it does not work despite that...;( Do you call a message pump somewhere? --- Arno Garrels [TeamICS] htt

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Fastream Technologies
Sure. I handle our custom messages and if it is not one of them, I call DispatchMessage(msg); (from WinAPI) Regards, SubZ - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Thursday, December 01, 2005 10:45 AM Subject: Re: [twsocket] Problem

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Wilfried Mestdagh
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, Fas

[twsocket] Severe Bug in FtpCli resp. FtpSrv

2005-12-01 Thread Peter Feldbaumer
Hello all, I found a bug in the FtpCli - FtpSrv combination. Steps to reproduce: 1) (Client) put FtpCli into passive mode 2) (Server) assign FtpSrv.FtpServerValidateGet 3) (Client) request something from the Server - e.g. with FtpClient.Get 4) (server) fail the resulting RETR command on the serve

Re: [twsocket] Severe Bug in FtpCli resp. FtpSrv

2005-12-01 Thread Angus Robertson - Magenta Systems Ltd
> I found a bug in the FtpCli - FtpSrv combination. > Steps to reproduce: > > 1) (Client) put FtpCli into passive mode > 2) (Server) assign FtpSrv.FtpServerValidateGet > 3) (Client) request something from the Server - e.g. with > FtpClient.Get > 4) (server) fail the resulting RETR command on the

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Fastream Technologies
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" Sent: Thursday, December 01, 2005 12:18 PM Subject: Re: [twsocke

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Wilfried Mestdagh
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

Re: [twsocket] Severe Bug in FtpCli resp. FtpSrv - Fix

2005-12-01 Thread Peter Feldbaumer
Followup & Fix to my first posting: If you want to reproduce the bug even on a fast connection simply enter in File FtpCli procedure TCustomFtpCli.Next1GetAsync; ... SetErrorMessage; FNext := nil; ->Sleep(500); FDataSocket.Close; DestroyLocalStream; ... en

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Fastream Technologies
THttpCli(SenderLastError 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 ---

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Wilfried Mestdagh
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 origi

Re: [twsocket] Severe Bug in FtpCli resp. FtpSrv - Fix

2005-12-01 Thread Angus Robertson - Magenta Systems Ltd
> If you want to reproduce the bug even on a fast connection simply > enter in File FtpCli I have reproduced your problem, and clearly the 226 response is bogus and needs to be removed. I'll look at a fix tomorrow. 20:01:10 FtpS< angusadmin PASV 20:01:10 FtpS> angusadmin 227 Entering Passive

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Maurizio Lotauro
On 30-Nov-05 15:21:24 Fastream Technologies wrote: >Hello, >I chose the second method (THttpCli) but the below code fails in a thread: [...] >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.

Re: [twsocket] UserManager component

2005-12-01 Thread Maurizio Lotauro
On 30-Nov-05 08:19:53 Arno Garrels wrote: >Maurizio Lotauro wrote: [...] >> Will they contains passwords? >Yes, with an option to save the MD5-hash only. What is the purpose of the component? The target is server only or client too? [...] >>> Are there alternatives? >> >> Why don't use the s

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Fastream Technologies
Hello, None of the following events are called: HTTPClient->OnBeforeHeaderSend = HTTPClientBeforeHeaderSend; HTTPClient->OnHeaderBegin = HTTPClientHeaderBegin; HTTPClient->OnHeaderData = HTTPClientHeaderData; HTTPClient->OnHeaderEnd = HTTPClientHeaderEnd; H