我正在运行一个带有HTML文件配置的curl脚本以进行html文档转换。下面是代码:
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"
Run Code Online (Sandbox Code Playgroud)
我遇到错误- Could not resolve proxy: POST。如果有人可以帮忙吗?
注意-我已经curl 7.46安装
您的错误似乎是一个代理配置问题。
尝试使用--noproxy标志:
例子:
curl --noproxy 127.0.0.1 +your POST
Run Code Online (Sandbox Code Playgroud)
或者尝试设置你的代理,就像我的例子:
curl --proxy <[protocol://][user:password@]proxyhost[:port]> +your POST
Run Code Online (Sandbox Code Playgroud)
观察:使用指定的HTTP代理。如果不指定端口号,则默认为 1080。
| 归档时间: |
|
| 查看次数: |
9797 次 |
| 最近记录: |