2014-10-03 198 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>