Re: [twsocket] Async http, close or closeAsync?

2005-10-19 Thread Francois Piette
> I'm using httpcli in async mode. > Should I use httpcli.Close() or httpcli.CloseAsync()? CloseAsync -- 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, freewa

[twsocket] Disconnect a client from FTPServer...

2005-10-19 Thread Scott
Hi, This is my first post to the list so I hope I do it right. My question is as follows: I'm trying to code a simple FTPServer using the ICS Demo as a base. However, I want to be able to disconnect a user via the server. I see the "FtpServer1.Disconnect()" method but I don't know how to use it. C

[twsocket] Async http, close or closeAsync?

2005-10-19 Thread Jack
Hello all, I'm using httpcli in async mode. Since I'm using http 1.0, most likely the server will disconnect when it's done sending the data. I just want to be sure so I plan to disconnect in HttpCliRequestDone event handler. Should I use httpcli.Close() or httpcli.CloseAsync()? Thanks. -- Best

Re: [twsocket] AN: Google Translation Interface

2005-10-19 Thread DZ-Jay
David A. G. wrote: > Hello all > > I made a beautiful interface for the Google language translation service > (using HTTPcli). > It is free, you can download and use it for free. > > http://www.mcrenox.com.ar/downloads/gtrans.exe > Doesn't run on Win2k... :( dZ. -- To unsubscribe or

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Bruno Mannina
Hi Francois, Well, well, well it's Work fine now :) even my program !!! Thank's a lot Bruno - Original Message - From: Francois PIETTE To: ICS support mailing Sent: Wednesday, October 19, 2005 8:26 PM Subject: Re: [twsocket] Do You have the same problem with this url and Ht

Re: [twsocket] OT: Open source model

2005-10-19 Thread Francois PIETTE
> I wonder how your open-source business model is going? Well, thank you. My freeware (This is slightly different than OpenSource) make me known and I get business because I am known. With the internet, the world is a village. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Francois PIETTE
> I just tested that URL with the HttpTst and it seems to work fine: Well, not here. The problem was that the "host" header line was malformed. The port is empty but the colon delimiter is there. Here is the fix (in red bold): procedure THttpCli.SendRequest(const Method, Version: String); ...

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Francois PIETTE
I get the same result as you. And I found why. And of course I fixed it. Here is the fix (in red bold): procedure THttpCli.SendRequest(const Method, Version: String); ... if (FTargetPort = '80') or (FTargetPort = '') then Headers.Add('Host: ' + FTargetH

Re: [twsocket] AN: Google Translation Interface

2005-10-19 Thread Wilfried Mestdagh
Hello David, Looks very nice :) Works fine in XP, but gives AV's in NT4. Did not tryed on other OS. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, October 19, 2005, 19:06, David A. G. wrote: > Hello all > I made a beautiful inte

Re: [twsocket] OT: Open source model

2005-10-19 Thread DZ-Jay
Arno Garrels wrote: > Code that is published as/in ICS was mostly contributed because the authors > would have written it anyway and they decided to give it away as freeware > under the license of ICS. The principle is simple, if you use ICS in your > applications, you should make your own improvem

Re: [twsocket] OT: Open source model

2005-10-19 Thread Arno Garrels
Fastream Technologies wrote: > Hello Francois, > > I wonder how your open-source business model is going? At first ICS is not open source. > I mean financially > is it satisfying? If I can convince me and my partner, we may consider > releasing the source code of our web/ftp server as well > (h

[twsocket] AN: Google Translation Interface

2005-10-19 Thread David A. G.
Hello all I made a beautiful interface for the Google language translation service (using HTTPcli). It is free, you can download and use it for free. http://www.mcrenox.com.ar/downloads/gtrans.exe I would like to hear for comments and suggestions. Thanks, David Aguirre Grazio www.mcrenox.com.a

[twsocket] OT: Open source model

2005-10-19 Thread Fastream Technologies
Hello Francois, I wonder how your open-source business model is going? I mean financially is it satisfying? If I can convince me and my partner, we may consider releasing the source code of our web/ftp server as well (http://www.fastream.com/netfileserver.htm), that's why I am asking. Best Reg

[twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread DZ-Jay
Hello: I just tested that URL with the HttpTst and it seems to work fine: Not using proxy cmd> GET /bibliography/Ai/agents.html HTTP/1.0 cmd> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* cmd> Connection: Keep-Alive cmd> Accept-Language: en, fr cmd> User-Agent: Mozilla/3

Re: [twsocket] Socket - TimeOut

2005-10-19 Thread Wilfried Mestdagh
Hello Werner, > so far I've red that after the connect, > onDataAvailable will fired direct, but is this when also when no data comes > in? That was the case on NT4 and on W2K, never checked it on XP. But I should nor rely on this. Just send your data in OnSessionConnected and set a timer. When O

Re: [twsocket] Socket - TimeOut

2005-10-19 Thread Werner
Thank, Thanks, I'll check the receive function An other Q. about TimeOut After connect to the server, I send a string 'SENDDATA' In OnDataAvailable, i check for incoming data, but when no data arives, then I want to close the connection. Now I'm using a separate timer to check this. Is there an o

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread DZ-Jay
Hello: I have confirmed that this URL is valid and returns a proper HTTP header with a status code of 200, but at the moment I do not have access to HttpTst to reproduce your problem. I'll check it in a few hours and let you know. mcdropzone:~ dz$ telnet liinwww.ira.uka.de 80 Trying 14

Re: [twsocket] Socket - streams

2005-10-19 Thread Francois Piette
> Does twSocket has a method to use streams > I want to recieve some data in a TStringStream > I wonder if I can read all data in one piece by using streams? It is not the component that read data, it is your application that does it from the OnDataAvailable event handler. > Now, I'm using CliSo

Re: [twsocket] Socket - streams

2005-10-19 Thread Wilfried Mestdagh
Hello Werner, If you data has a terminating character then you can use lineMode. Then OnDataAvailable will only fire when thes character(s) are received and you have all your data at ones. If not it will arrive in many chunck, or datapackets can even be concatenatied. Thats nature of TCP. > Now,

[twsocket] Socket - streams

2005-10-19 Thread Werner
Hi, Does twSocket has a method to use streams I want to recieve some data in a TStringStream Now, I'm using CliSocket.ReceiveStr to recieve data and put this in a buffer until all data is read I wonder if I can read all data in one piece by using streams? Thanks for any suggestions Werner -- T