Re: [twsocket] Discard any bytes in the read buffer

2005-12-08 Thread Wilfried Mestdagh
Hello Ionut, Can you tell which component, which buffer etc ? If you mean TWSocket and also means the receive buffer then the answer is: just read them and do nothing with it. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday,

Re: [twsocket] Simple FTP code doesn't work :(

2005-12-08 Thread Francois Piette
I don't see anything obviously wrong in your code. I suggest you add an OnDisplay event handler to display messages from the component into a memo to better see what happend. Also, have a try with FtpTst sample program delivered with ICS to see if it is able to create the file or not. --

Re: [twsocket] File download

2005-12-08 Thread Francois Piette
Hmm... How do i download a file and save it on disk? Got the RcvdStream and... what? How do i save it to file? I thought that stream.savetofile would work but there is no such a thing... Just assign a TFileStream to RcvdStream and you have a file. That's the beauty of TStream and derived

Re: [twsocket] File download

2005-12-08 Thread Fastream Technologies
You need to parse the header on OnHeaderEnd. First store it in a class variable in OnHeaderData. Notice that this event is called each time a header line comes. Regards, SZ - Original Message - From: Me [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday,

Re: [twsocket] Chunked encoding with THttpCli

2005-12-08 Thread Maurizio Lotauro
On 03-Dec-05 12:56:55 Fastream Technologies wrote: Hello, Does THttpCli support chunked encoding? If so, how do we indicate we can accept it from server? The history say that it is introduced on December 28, 2003. Looking on the code it seems that there is no way to automatically add the

Re: [twsocket] File download

2005-12-08 Thread Fastream Technologies
Use Client-LastResponse. Regards, SZ - Original Message - From: Me [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, December 09, 2005 8:37 AM Subject: Re: [twsocket] File download Ok. But... i really have no idea how do i get a header... in OnHeader

Re: [twsocket] File download

2005-12-08 Thread Me
This one is always empty :( Wiadomość Oryginalna Od: Fastream Technologies [EMAIL PROTECTED] Do: ICS support mailing twsocket@elists.org Data: Fri, 9 Dec 2005 09:25:18 +0200 Temat: Re: [twsocket] File download Use Client-LastResponse. Regards, SZ - Original Message -