curl中不支持或禁用协议Https

curl中不支持或禁用协议Https,curl,Curl,我得到这个错误,即使当我这样做 curl -V https被列为协议之一 下面是我输入到shell中的curl命令: curl -u {'username-key'} -H 'Content-Type:application/json' -X POST -d '{"dialog_node":"Animals"}' 'https://gateway.watsonplatform.net/assistant/api/v1/workspaces/{my workspace id}/dialog_n

我得到这个错误,即使当我这样做

curl -V 
https被列为协议之一

下面是我输入到shell中的curl命令:

curl -u {'username-key'} -H 'Content-Type:application/json' -X POST -d '{"dialog_node":"Animals"}' 'https://gateway.watsonplatform.net/assistant/api/v1/workspaces/{my workspace id}/dialog_nodes/LivingThings?version=2018-07-10'
这是一个命令,用于更改IBM Watson内部对话框节点的名称。随附API以供参考


我可以用您的curl命令重现这一点:

curl:(1)libcurl中不支持或禁用协议“'https”

https
之前的
让我产生了怀疑,因此我尝试在URL周围不加引号:

curl -u {'username-key'} -H 'Content-Type:application/json' -X POST -d '{"dialog_node":"Animals"}' https://gateway.watsonplatform.net/assistant/api/v1/workspaces/{my workspace id}/dialog_nodes/LivingThings?version=2018-07-10
这对我很有用

错误消息的双引号使这一点几乎无法识别,它实际上说:

不支持协议https

它将转义(单)引号解释为URL/协议的一部分

在Windows cmd上,引用仅适用于双引号是一种已知的行为