linux 环境下 curl文件上传post总结变式
1 openstack horizon 的 django api部分
/root/bin/file_upload/php/post.sh
curl -F "userfile=@/root/image333.jpg" http://192.168.1.11/face/upload_ok.php
curl -F "file=@/tmp/tmp" http://10.99.3.156:22222/api/rest/swcloud/file/upload
curl -v -F "file=@/root/swcloud.tar.gz" -F 'container_name=/tmp4/' http://10.99.3.156:22222/api/rest/swcloud/file/upload
2. 上传参数为文件 -F
curl -v -F "file=@/root/bin.tar.gz"<