HELP! - Unable to acquire FTP file list...

Keith (Gulf Breeze Ortho Lab) keith at gulfbreezeortholab.com
Thu Mar 1 16:26:30 EST 2012


Hi All,

I am back to playing with FTP and have a problem. I have a shared server with unlimited FTP accounts and have created an account for testing purposes. (I am NOT using the main FTP account for my hosting package.)

Anyway, I am able to upload and download files with no problem. Furthermore, I am also able to make directories and delete directories. The problem I am having is the acquisition of a file list for the FTP account. I have tried both of the following methods, but to no avail:

]libURLSetFTPListCommand "LIST"
get libURLftpCommand("LIST","ftp.mydomain.com","myusername at mydomain.com","mypassword")
answer it

Implementing the above, I keep getting:

“425 No Data Connection”

Furthermore, I have also tried the following:

constant FTPHOST = "ftp.mydomain.com"   
put the urlencode of "myusername at mydomain.com" into FTPUSER
put the urlencode of "mypassword" into FTPPASS

libURLSetFTPListCommand "LIST"
put url "ftp://" & FTPUSER & ":" & FTPPASS & "@" & FTPHOST into myVar

answer myVar

But nothing... What am I doing wrong? I thought the problem might be that the username is in the form of an email address (which includes the "@" character), but the other commands work--for example:

get libURLftpCommand("DELE "&delFile,"ftp.mydomain.com","myusername at mydomain.com","mypassword")

put libURLftpCommand("MKD " &foldername,"ftp.mydomain.com","myusername at mydomain.com","mypassword") into FTPme

Any help would be most appreciated! Thanks!

Sincerely,

- Boo


More information about the use-livecode mailing list