我正在使用HTML文件配置运行用于HTML文档转换的curl脚本。代码如下:
curl -x POST -u "Username":"Password" -F "config=@config.json" -F "file=@example.html;type=text/html" "https://gateway.watsonplatform.net/document-conversion/api/v1/index_document?version=2015-12-15"我收到了error - Could not resolve proxy: POST。如果有人能帮上忙的话?
注意-我已经安装了curl 7.46
发布于 2018-08-01 18:41:35
我最近正在学习curl,也遇到了这个问题。实际上,原因是应该用-X取代-x。
发布于 2017-07-10 22:06:57
你的错误看起来像是一个代理配置问题。
尝试使用--noproxy标志:
示例:
curl --noproxy 127.0.0.1 +your POST或者尝试设置您的代理,如我的示例:
curl --proxy <[protocol://][user:password@]proxyhost[:port]> +your POSTObs:使用指定的HTTP代理。如果未指定端口号,则默认为1080。
发布于 2021-07-28 20:58:23
curl -X POST "yourwebsite.js"
https://stackoverflow.com/questions/45013318
复制相似问题