卷曲命令不返回

编程入门 行业动态 更新时间:2024-10-26 21:31:00
本文介绍了卷曲命令不返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用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

更多推荐

卷曲命令不返回

本文发布于:2023-06-06 04:41:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/534724.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:卷曲   命令

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!