我试图做一个PUT请求来创建一个新的BLOB.在授权标题出现一些初步问题后,当我尝试将文件放入容器时,我现在收到404 Resource Not Found错误.
我觉得我的网址是正确的:
https://accountNameHere.blob.core.windows.net/containerNameHere
我已经检查并重新检查,以确保我包含容器名称和帐户名称,它们都是正确的.
还有什么可能导致这个(除了我所做的一切错误的独特可能性)?
编辑添加:
以下是原始请求标头:
PUT /testss HTTP/1.1 Host: accountName.blob.core.windows.net Accept: */* Connection: Keep-Alive 0: content-encoding 1: content-language 2: content-length 3: content-md5 4: content-type 5: date 6: if-modified-since 7: if-match 8: if-none-match 9: if-unmodified-since 10: range x-ms-blob-type: BlockBlob x-ms-version: 2011-08-18 x-ms-date: Fri,09 Aug 2013 04:17:59 GMT Content-Length: 126377 Authorization: SharedKey accountName:MBVLmoxzxZr+tf8EZw2GkbFLEHuNn8FNAaEHrcty/cM= Expect: 100-continue
以下是我发送的字符串:
PUT x-ms-blob-type:BlockBlob x-ms-date:Fri,09 Aug 2013 04:03:20 GMT x-ms-version:2011-08-18 /accountName/test
这就是他们的期望:
PUT 126377 x-ms-blob-type:BlockBlob x-ms-date:Fri,09 Aug 2013 04:02:17 GMT x-ms-version:2011-08-18 /accountName/test
您是否检查了Blob容器的安全设置.这可能是你没有足够的访问权限.