duanbinian2243 2019-07-01 20:55
浏览 66

无法使用AWS REST API获取存储桶位置

I'm using their REST API and I'm trying to get bucket location but without any success. Every time when I'm trying to do that I get the exact same error - 400 Bad Request (error code: AuthorizationHeaderMalformed). No matter what I do I get this error. When I parse the response I'm able to see that the region is there. The question is: Do we have an option to get the bucket region without getting this error? From their AWS SDK(PHP) I'm able to see that they catch the error and after that, they get the region from the response body.

* Closing connection 0
*   Trying 52.218.244.186...
* TCP_NODELAY set
* Connected to servmasltest123455.s3.amazonaws.com (52.218.244.186) port 80 (#0)
> GET /?location HTTP/1.1
Host: servmasltest123455.s3.amazonaws.com
Accept: */*
User-Agent: user-agent
x-amz-date: 20190617T121859Z
x-amz-content-sha256: signature

< HTTP/1.1 400 Bad Request
< x-amz-request-id: B391493327CE3B63
< x-amz-id-2: x-amz-id
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Date: Mon, 17 Jun 2019 12:18:59 GMT
< Connection: close
< Server: AmazonS3
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度