[twsocket] ICS THttpConnection.AnswerString transfer-encoding chunked

2012-07-16 Thread Ralph M Rickenbach
Hi I am using THttpConnection.AnswerString from file OverbyteIcsHttpSrv and want to send several answers in a long running request via transfer-encoding "chunked". What do I have to do for this to be possible? FKeepAliveTimeSec is zero, I set the header of the response before calling answerStr

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
Thank you. You have been very helpful. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 16 July 2012 17:38 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP Client > I had not c

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Angus Robertson - Magenta Systems Ltd
> I had not cleared the "HostFilename" parameter. So the DirAsync still > had this as a parameter. This is deliberate, the FTP command 'LIST directory' is valid, but not totally reliable with all FTP servers, it can save a lot of path commands. 'LIST filename' is also how to check if a specific f

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
I used the demo program from your website in conjunction with Wireshark to monitor what was going on in network land. I then tried my program and the problem was obvious. I knew it would be simple. After doing the GetAsync I had not cleared the "HostFilename" parameter. So the DirAsync still had th

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Marc Charbonneau
>> I know there are files in the sub folder as I can see them >> with Windows Explorer. > > Which does not have any FTP functionality, so is this a local FTP server? You can browse FTP servers with Windows Explorer, you just need to type the address in the address bar. Ex.: ftp://usern...@ftpserver

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Angus Robertson - Magenta Systems Ltd
> I may well end up using your components, but in the meantime I need > to determine what my problem is here. The component includes an EXE demo, use that against the FTP server and the same root directory specifying get subdirs, and watch the FTP commands and responses the component uses to pars

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
I may well end up using your components, but in the meantime I need to determine what my problem is here. I use DirAsync to get the directory listing. If I set the directory to Test1 and do a DirAsync, I get all the files and folder names. Now If I set the CWD to one of these sub folders and do a D

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Angus Robertson - Magenta Systems Ltd
> Now I change the working directory to Test1/abc. I check with > Now I change the working directory to Test1/abc. PwdAsync that > it is correct and it responds with what I could expect. > Next I try and do a directory listing on this folder. The response > indicates no error, but the stream is o

[twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
I'm sure this problem is simple to solve but I am tearing my hair out trying to solve it. Imagine I have an FTP site that contains a folder called "Test1". In this folder I have a file called "abc.dat" and another folder just called "abc". So I log on to the FTP site and change the directory (Cwd