Amazon Simple Storage Service
开发人员指南 (API Version 2006-03-01)
AWS 服务或AWS文档中描述的功能,可能因地区/位置而异。点 击 Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

检索 requestPayment 配置

您可以通过请求资源 Payer 来确定在存储桶上设置的 requestPayment 值。

返回 requestPayment 资源的步骤

  • 使用 GET 请求来获取 requestPayment 资源,如以下请求所示。

    GET ?requestPayment HTTP/1.1 Host: [BucketName] Date: Wed, 01 Mar 2009 12:00:00 GMT Authorization: AWS [Signature]

如果请求成功,Amazon S3 将返回类似于以下内容的响应。

HTTP/1.1 200 OK x-amz-id-2: [id] x-amz-request-id: [request_id] Date: Wed, 01 Mar 2009 12:00:00 GMT Content-Type: [type] Content-Length: [length] Connection: close Server: AmazonS3 <?xml version="1.0" encoding="UTF-8"?> <RequestPaymentConfiguration xmlns=""> <Payer>Requester</Payer> </RequestPaymentConfiguration>

此响应显示 payer 值已设置为 Requester