FTP list

Discuss any general programming issues here
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: FTP list

Post by xabierpayet »

Hello PEB, another question, i need send noop command constantly to the server?
and another, if i add this text to the script

senddata(1, "CWD /files\r\n")
data$=receivedata(2,#receiveall)
debugprint(data$)

i don´t have any text in my output screen, i need open the connection everytime that i send a msg?
reading the output in the filezilla screen, i don´t understand how send the messages when i´m logged in
and with the list of the contents

regards
PEB
Posts: 568
Joined: Sun Feb 21, 2010 1:28 am

Re: FTP list

Post by PEB »

Some servers might need to receive the NOOP command every once in a while to keep the connection open; but I don't think it's generally necessary.

If you want to change directories, you need to open another data channel (the previous one expires once all the requested data is sent) in order to receive the information about the new directory. So you have to repeat the PASV command and open the connection for the new data channel.

We probably should stop using this thread for FTP questions, since it has already been demonstrated that Hollywood has no trouble with such connections. You can e-mail me directly if you want: revbloedel{at}gmail{dot}com
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: FTP list

Post by xabierpayet »

ok, perfect, i has learned a lot about ftp´s with 2 posts xD
Post Reply