Here’s a sample PUT request that retrieves the first hundred thousand bytes of the object named quarterly_rpts/Q4_2012.ppt in the finance bucket. The request writes the object data to a file named Q4_2012_Rpt_Part-1. The request is being made while versioning is disabled for the bucket.
Request with s3curl command line
./s3curl.pl --id=lgreen -- -k
"https://finance.europe.hcp.example.com/quarterly_rpts/Q4_ 2012.ppt"
-H "Range:bytes=0-99999" > Q4_2012_Rpt_Part-1
Request headers
GET /quarterly_rpts/Q4_2012.ppt HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 12 Apr 2013 14:52:03 +0000
Authorization: AWS bGdyZWVu:f6RKgLahMlrfc7de89aJ0Xt8wKM=
Range: bytes=0-99999
Response headers
HTTP/1.1 206 Partial Content
Date: Fri, 12 Apr 2013 14:52:02 GMT
Server: HCP V7.0.0.16
ETag: "617e8ef649d40cda1f7f3ca81c97a06a"
Last-Modified: Mon, 22 Jan 2013 17:19:26 GMT
Cache-Control: no-cache,no-store
Pragma: no-cacheContent-Type: application/vnd.ms-powerpoint
Content-Range: bytes 0-99999/235813
Content-Length: 100000
© 2015 Hitachi Data Systems Corporation. All rights reserved.