我发送以下请求
GET http://bucketname.s3.amazonaws.com/?location
Host: bucketname.s3.amazonaws.com
x-amz-date: 20170531T082529Z
Authorization: AWS
我收到以下错误
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>?location</Key>
<RequestId>7E63980AAE</RequestId>
<HostId>HostID</HostId>
</Error>
似乎它试图通过?位置名称来获取对象。但根据Amazon API页面http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html 它应该返回桶的位置