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:
Code: Select all
libURLSetFTPListCommand "LIST"
get libURLftpCommand("LIST","ftp.mydomain.com","myusername@mydomain.com","mypassword")
answer it
425 No Data Connection
Furthermore, I have also tried the following:
Code: Select all
constant FTPHOST = "ftp.mydomain.com"
put the urlencode of "myusername@mydomain.com" into FTPUSER
put the urlencode of "mypassword" into FTPPASS
libURLSetFTPListCommand "LIST"
put url "ftp://" & FTPUSER & ":" & FTPPASS & "@" & FTPHOST into myVar
answer myVar
Code: Select all
get libURLftpCommand("DELE "&delFile,"ftp.mydomain.com","myusername@mydomain.com","mypassword")
put libURLftpCommand("MKD " &foldername,"ftp.mydomain.com","myusername@mydomain.com","mypassword") into FTPme
Sincerely,
- Boo