Bootstrap FreeKB - Curl - Upload file using the -T or --upload-file option
Curl - Upload file using the -T or --upload-file option

Updated:   |  Curl articles

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

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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