send file with curl code example
Example 1: curl output to a file
curl http://www.mysite.com -o myoutputfile.txt
Example 2: linux curl upload file ftp
# curl -T backup-file.tar.gz ftp://username:[email protected]/backup/
Example 3: curl data from file
curl -i -X POST host:port/post-file \
-H "Content-Type: text/xml" \
--data-binary "@path/to/file"