Here’s a sample HEAD request that checks the existence of a folder named r&d/budget_proposals in the finance bucket. The request is being made while versioning is enabled for the bucket.
Request with s3curl command line
./s3curl.pl --id=lgreen --head -- -k
"https://finance.europe.hcp.example.com/r&d/budget_proposals/"
Request headers
HEAD /r&d/budget_proposals/ HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Tue, 09 Apr 2013 23:12:14 +0000
Authorization: AWS bGdyZWVu:4u9bhK0DQF2FLZtT0VVwMKdvm+I=
Response headers
HTTP/1.1 200 OK
Date: Tue, 09 Apr 2013 23:12:13 GMT
Server: HCP V7.0.0.16
ETag: "d41d8cd98f00b204e9800998ecf8427e"
x-amz-version-id: 87395113368065
Last-Modified: Tue, 04 Dec 2012 14:40:26 GMT
Content-Type: application/octet-stream
Content-Length: 0
© 2015 Hitachi Data Systems Corporation. All rights reserved.