Cacomania: FTP upload via cURL

Cacomania

FTP upload via cURL

Guido Krömer - 12. August 2012 - Tags: , , ,

Uploading a file to a ftp server with cURL is really easy:

# curl -u user:pass -T my_file ftp://example.com/target/path/

Or with a little potion of bash for uploading multiple file:

# for file in ./*; do curl -u user:pass -T "$file" ftp://example.com/target/path/; done;