Here’s a sample PUT request that stores an object named quarterly_rpts/Q4_2012.ppt in the finance bucket. The example shows the response headers HCP returns while versioning is enabled for the bucket and while versioning is disabled for the bucket.
Request with s3curl command line
./s3curl.pl --id=lgreen --put=/quarterly_rpts/Q4_2012.ppt -- -k
"https://finance.europe.hcp.example.com/quarterly_rpts/Q4_2012.ppt"
Request headers
PUT /quarterly_rpts/Q4_2012.ppt HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Mon, 22 Jan 2013 17:19:26 +0000
Authorization: AWS bGdyZWVu:HbkRBWvyO3YQO55Bm0VS3RMatvg=
Content-Length: 235813
Response headers with versioning enabled
HTTP/1.1 200 OK
Date: Mon, 22 Jan 2013 17:19:26 GMT
Server: HCP V7.0.0.16
x-amz-version-id: 87288727469825
ETag: "617e8ef649d40cda1f7f3ca81c97a06a"
Content-Length: 0
Response headers without versioning disabled
HTTP/1.1 200 OK
Date: Mon, 22 Jan 2013 17:19:26 GMT
Server: HCP V7.0.0.16
ETag: "617e8ef649d40cda1f7f3ca81c97a06a"
Content-Length: 0
© 2016 Hitachi Data Systems Corporation. All rights reserved.