【发布时间】:2018-04-12 03:46:10
【问题描述】:
我在 Windows 7 Professional 的 cygwin 中使用 cURL 命令将文件上传到目标,我看到端口号以消息结尾。我的错在哪里?
$ curl -k -u username:'password' --cacert D:/'My Data'/Desktop/cacert.pem -X POST "jsonInputParameters={\"parentID\":\"FAECDB25A7775B98062FEF15F6C3FF17C1177A968060\"}" -F "primaryFile=@C:/Users/user/AppData/Local/Temp/2704092483770369841.pdf" https://host/documents/api/1.1/files/data
curl: (3) Port number ended with '"'
【问题讨论】:
-
试试 '/cygdrive/d/My Data/Desktop/cacert.pem'