FreeKB - Curl -T --upload-file
Curl - -T --upload-file

The -T or --upload-file option can be used to upload a file to a target server. In this example, foo.txt is uploaded to the /tmp directory on the server with hostname example.com.

curl --upload-file /path/to/foo.txt sftp://example.com/tmp/foo.txt

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 7c7e9 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |