【发布时间】:2016-02-19 11:56:27
【问题描述】:
到目前为止,我正在尝试使用 curl 从我的公司服务器检索 jira 问题,但没有任何运气。
我已经测试了JIRA REST API Example - Basic Authentication 此处描述的两个示例,但均未成功。我按照“提供基本身份验证标头”示例中的描述对我的用户和密码进行了 base64 编码,并输入了我想要获取的问题的 url。我在浏览器中测试了 url 我得到了 json 文档,所以 url 是正确的。
这就是我的命令的样子
someuser@somehost:~$ curl -D- -X GET -H "Authorization: Basic base64encodedstringhere -H "Content-Type: application/json" https://jira.acme.com/rest/api/2/issue/KEY-666
然后我得到提示“>”但没有 json 文档。我有什么遗漏或做错了吗?
谢谢。
【问题讨论】:
标签: curl jira jira-plugin jira-rest-api