Here’s a sample PUT request that uploads a part of the multipart upload for an object named acctg/RulesAndRegulations.pdf in the finance bucket. The data for the part is in a file named /file-parts-temp/RulesAndRegs-Acctg-1.
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=/file-parts-temp/RulesAndRegs-Acctg-1 -- -k
"https://finance.europe.hcp.example.com/acctg/RulesAndRegulations.pdf
?uploadId=94837746087105&partNumber=1"
Request headers
PUT /acctg/RulesAndRegulations.pdf?uploadId=94837746087105&partNumber=1 HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 07 February 2020 17:19:26 +0000
Authorization: AWS bGdyZWVu:oVRZgtbngViycDs+I2p2NP5Y3zY=
Response headers with versioning enabled
HTTP/1.1 200 OK
Date: Fri, 16 Dec 2016 15:29:28 GMT
ETag: "4a01f8acf3353b0a7e1c03a0e34f63e4"
x-amz-version-id: 94841738807809
x-amz-server-side-encryption: None
Content-Length: 0
Response headers with versioning disabled
HTTP/1.1 200 OK
Date: Fri, 07 February 2020 17:19:26 GMT
ETag: "4a01f8acf3353b0a7e1c03a0e34f63e4"
x-amz-server-side-encryption: None
Content-Length: 0
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.