2014-10-03 196 views
-1

請幫我克服這個錯誤。答案是不好的要求。HTTP/1.1 400錯誤的請求

:~$ curl -sSik 'https://akab-dgggccicvhi6p7p5-5rjdbjpqquwl5gwz.luna.akamaiapis.net/config-media-live/v1/live/{abcdefgh-lh.akamaihd.net}/stream' 

的反應是:

HTTP/1.1 400 Bad Request 
Content-Length: 457 
Date: Fri, 03 Oct 2014 05:40:02 GMT 
Connection: close 
Content-Type: application/problem+json 

{ 
    "type": "https://problems.luna.akamaiapis.net/-/pep-authn/request-error", 
    "title": "Bad request", 
    "status": 400, 
    "detail": "Authorization header missing", 
    ..... 
    "method": "GET", 
    .... 
    .... 
    .... 
    .... 
    "requestTime": "2014-10-03T05:40:02Z" 
} 
+1

試圖用這個模式: 捲曲--user名:密碼<這裏把你的地址> ,你對這些資源的授權? – Beri 2014-10-03 06:17:07

回答

1

您沒有正確授權使用API​​。請閱讀API docs瞭解更多信息。

0

您是否在這些資源上獲得授權?如果不使用登錄名和密碼。 例子:

curl --user name:password <url>