本文介绍了卷曲命令不返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用api,在此处找到的文档中: api.simplicate.nl/有一个curl的示例:
Im working with an api, in the documentaion found here: api.simplicate.nl/ There is an example curl:
`curl -H "Authentication-Key: {API Key}" -H "Authentication-Secret:{API secret}" {subdomain}.simplicate.nl/api/v2/crm/organization.json`我在终端中运行了这样的代码:
I ran that code like this in terminal:
curl -H "Authentication-Key:XX" -H "Authentication-Secret:XX" mydomain.simplicate.nl/api/v2/crm/organization.json它运行但不返回任何内容.
It runs but returns nothing.
推荐答案您在"..." 内使用Header是错误的.您必须使用双引号"..." (不确定它是什么,标准的双引号?).
You are using Header inside "..." that is wrong. You have to use double quote "..." (not sure what it is called, standard double quote?).
应该是:
curl -H "Authentication-Key:XX" -H "Authentication-Secret:XX" mydomain.simplicate.nl/api/v2/crm/organization.json请注意,目前,您的curl正在发送标头,如下所示,并带有多余的字符.
As a note, currently your curl is sending the headers as following with extra characters.
"Authentication-Key:XX" "Authentication-Secret:XX"但是应该是:
Authentication-Key:XX Authentication-Secret:XX更多推荐
卷曲命令不返回
发布评论