deleting files from ftp

msnf's icon

Hello,
do you know if is it possible to use maxurl object to delete files from ftp server?
curl permits to upload, download and list the files, but it's impossible to delete files.
Remove files from ftp server this is a bit tricky, because curl do not support that by default,
well anyway, you can make use of -X and pass in the REAL FTP command.
(see http://linux.byexamples.com/archives/320/using-curl-to-access-ftp-server/)
Is there solution to do it with maxurl object?
Tanks
msnf

hz37's icon

Can't you write this as a service (php comes to mind) running on the server and call it with maxurl? You can encode special parameters in the url so it's not super easy to hack. Php easily lets you delete stuff of course, and you make life super easy on the Max side of things. Your php service doesn't even have to run on the same machine, of course:

Good luck!

Hens Zimmerman

msnf's icon

Thank you for year answer Hens.
Sorry don't understand what exactly you mean.
Here is an example of command line curl where you need to pass in the REAL FTP command:
curl ftp://myftpsite.com/ -X 'DELE mp3/koc_dance.mp3' --user myname:mypassword
the problem is how you write the ftp command with maxurl object...?
msnf