0
我试图通过curl访问aingle功能。我的最终目标是使用curl来实现它,但现在我在终端中使用curl来尝试消除我的错误。所以我输入到我的终端:通过curl调用API访问返回错误
curl -v -u rtservice:minRTgle http://10.10.8.170:8080/api/v2/projects/request_tracker_queue/cards/18.xml
,我也得到:
* About to connect() to 10.10.8.170 port 8080 * Trying 10.10.8.170... connected * Connected to 10.10.8.170 (10.10.8.170) port 8080 * Server auth using Basic with user 'rtservice' > GET /api/v2/projects/request_tracker_queue/cards/18.xml HTTP/1.1 > Authorization: Basic cnRzZXJ2aWNlOm1pblJUZ2xl > User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 > Host: 10.10.8.170:8080 > Accept: */* > < HTTP/1.1 403 Forbidden < Cache-Control: no-cache < Content-Type: application/xml; charset=utf-8 < Content-Length: 175 < Set-Cookie: last-visited-project=request_tracker_queue; path=/; expires=Thu, 12-Sep-2013 21:34:32 GMT < Set-Cookie: mingle_12_2_2_session_id=0f0bc86a43e0b69bfc6665df68c31046; path=/; HttpOnly < Server: Jetty(6.1.19)
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Either the resource you requested does not exist or you do not have access rights to that resource.</error>
</errors>
* Connection #0 to host 10.10.8.170 left intact * Closing connection #0
我不知道我在做什么错。凭据是正确的,如果我尝试在Firefox中访问url,它将返回我期望的xml(但它确实提示我问“你确定吗?”)。奇怪的是,如果我尝试在chrome中执行相同的操作,它将返回与终端中相同的错误。我很茫然。我不明白什么可能会搞砸。
感谢您的帮助提前,
乔丹
你究竟在Mingle中打开了基本配置? – arunvelsriram