How to upload a file to a FTP server with cURL

If you need a simple way to upload a file to an FTP-server from commandline or from a script, you could use cURL:

curl -v -T file.txt ftp://username:password@myserver/mydir/

The -v turns on verbosity and -T aktivates file-uploads.

Leave a Reply

Your email address will not be published. Required fields are marked *