The simplest-to access-a FTP server with username and Passwordcurl ftp://myftpsite.com--user MYNAME:MYPASSWORD&NB Sp;</span>with the command line above, Curl would try to connect to the FTP server and list all the directories and F Iles in the FTP home directory. To download a file from FTP Servercurl ftp://myftpsite.com/mp3/mozart_piano_sonata.zip--user myname:mypassword-o Mozart _piano_sonata.zip</span>to Upload a file to ftp servercurl-t Koc_dance.mp3 ftp://myftpsite.com/mp3/--user myname: Mypassword</span>to List files in sub Directories.curl ftp://myftpsite.com/mp3/ --user myname: Mypassword</span>list only directories, silent the Curl progress bar, and use grep to Filtercurl ftp://myftpsite.com --user Myname:mypassword-s | grep ^d</span>remove files from FTP server. This is a bit tricky, because Curl does not support so by default, well anyway, you can make use of of-x and pass in the REA L FTP command. (Check out a list of FTPService Command in RFC 959, under 4.1.3. FTP SERVICE COMMANDS) Curl ftp://myftpsite.com/-X ' DELE Mp3/koc_dance.mp3 '--user myname:mypassword</span> Caution:make sure you is know what is deleting! It would not prompts ' is you sure? ' confirmation. Check out Curl Manual for More,man curl</span>or This, ^^ (contains different info) Curl--manual | Less </span>
FTP upload instance of the Curl command