curl:upload_a_file_with_ftp
Curl - Upload a file with FTP
curl -T uploadfilename -u username:password ftp://sitename.com/myfile
- The ‘uploadfilename’ file will be copied to the remote site and named ‘myfile’.
- If the destination filename is eliminated the file will be copied with the original name.
- By default the file will be copied to the root directory.
To copy to some other directory specify the directory after the site name;e.g.
curl -T uploadfilename -u username:password ftp://sitename.com/directory/myfile
curl/upload_a_file_with_ftp.txt · Last modified: 2020/09/25 13:12 by 192.168.1.1