Here’s a sample HEAD request that checks whether the object named AcctgBestPractices.doc has been modified since December 20, 2016, at 23:59:59 GMT. 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/AcctgBestPractices.doc"
-H "If-Modified-Since: Tue, 20 Dec 2016 23:59:59 +0000"
Request headers
HEAD /AcctgBestPractices.doc HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 07 February 2020 17:19:26 +0000
Authorization: AWS bGdyZWVu:Yn7gcia/yqzGRKRC04HaOuD3aH0=
If-Modified-Since: Tue, 20 Dec 2016 23:59:59 +0000
Response headers
HTTP/1.1 200 OK
Date: Fri, 07 February 2020 17:19:26 GMT
ETag: "764f38262c6e581f678e1ac9b0211ae8"
Accept-Ranges: bytes
x-amz-version-id: 87288815588289
Last-Modified: Thu, 29 Dec 2016 19:42:16 GMT
x-amz-meta-author: Morgan White
Content-Type: application/msword
Content-Length: 3552369
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.