Curl HTTP/1.1400错误请求
请帮我克服这个错误。响应是错误的请求Curl HTTP/1.1400错误请求,curl,Curl,请帮我克服这个错误。响应是错误的请求 :~$ 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
:~$ 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"
}
您没有正确授权使用API。有关更多信息,请阅读。您有权使用这些资源吗?如果没有,请使用登录名和密码。 例如:
curl——用户名:密码
尝试使用以下模式:curl--user name:password,您有权使用这些资源吗?
curl --user name:password <url>