The requester-pays configuration allows the requester to pay for data transfer and API calls associated with accessing the requested OBS resources, while the bucket owner only pays for data storage. If your bucket is the source for large-scale data sharing, you can enable requester-pays for the bucket, so that the requester pays for data access in the bucket. Otherwise, you, the bucket owner, will pay for all costs associated with the bucket.
Sample request for downloading an object by a requester
1 2 3 4 5 | GET /ObjectName HTTP/1.1 Host: bucketname.obs.region.example.com Date: date Authorization: authorization x-obs-request-payer: requester |
Sample response
1 2 3 4 5 6 7 | HTTP/1.1 status_code x-obs-request-charged: requester Content-Type: type Date: date Content-Length: length <Object Content> |