Curl FTPS上传用户名:密码的句法

问题描述 投票:0回答:1

所以curl man页面上说要这样上传。

curl --upload-file "{file1,file2}" http://www.example.com

或者

curl -T "img[1-1000].png" ftp://ftp.example.com/upload/

我知道如何建立连接......这是我的命令,它可以工作。

curl -k --user myusername:mypassword ftps://ftp.yourftp.com 

但手册页面没有列出如何建立连接和上传文件。只有如何上传文件。那么这里连接和上传的正确语法是什么?如何将最后建立连接的命令和curl上传命令结合起来?

curl uploading ftps
1个回答
0
投票
curl -k -T /localfilepath/temptestfile.txt ftps://yourusername:[email protected]/somedirectory/
© www.soinside.com 2019 - 2024. All rights reserved.