我在 Postman 中发送以下请求,以从此 URL 的 Azure Blob 存储检索简单的 .jpghttps://steamo.blob.core.windows.net/testcontainer/dog.jpg https://steamo.blob.core.windows.net/testcontainer/dog.jpg
GET /testcontainer/dog.jpg HTTP/1.1
Host: steamo.blob.core.windows.net
Authorization: SharedKey steamo:<my access key>
x-ms-date: Tue, 26 May 2015 17:35:00 GMT
x-ms-version: 2014-02-14
Cache-Control: no-cache
Postman-Token: b1134f8a-1a03-152c-2810-9cb351efb9ce
如果您不熟悉 Postman,它只是一个 REST 客户端 - Postman-Token 标头可能可以被忽略。
我的访问密钥是从我的 Azure 管理门户复制的。
我收到此错误:
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2482503d-0001-0033-60da-9708ed000000 Time:2015-05-26T17:35:41.4577821Z
有了这个 AuthenticationErrorDetail:
The MAC signature found in the HTTP request '<my access key>' is not the same as any computed signature. Server used following string to sign: 'GET x-ms-date:Tue, 26 May 2015 17:35:00 GMT x-ms-version:2014-02-14 /steamo/testcontainer/dog.jpg'.
我该如何解决?如果您需要我提供更多信息,请告诉我。