gpt4 book ai didi

curl - 无法解析代理 : POST (while running curl script for watson document conversion)

转载 作者:行者123 更新时间:2023-12-04 16:24:01 25 4
gpt4 key购买 nike

我正在运行带有 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"
我收到错误 - Could not resolve proxy: POST .如果有人可以帮忙吗?
注意 - 我有 curl 7.46已安装

最佳答案

我最近正在学习 curl 并且也遇到了这个问题。其实原因是-x应替换为 -X .

关于curl - 无法解析代理 : POST (while running curl script for watson document conversion),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45013318/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com