Checking whether an object has been modified

Here’s a sample HEAD request that checks whether the object named AcctgBestPractices.doc has been modified since December 20, 2012, at 19:42:16 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:Thu, 20 Dec 2012 19:42:16 +0000"

Request headers

HEAD /AcctgBestPractices.doc HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Thu, 04 Apr 2013 15:44:36 +0000
Authorization: AWS bGdyZWVu:Yn7gcia/yqzGRKRC04HaOuD3aH0=
If-Modified-Since: Thu, 20 Dec 2012 19:42:16 +0000

Response headers

HTTP/1.1 200 OK
Date: Thu, 04 Apr 2013 15:31:19 GMT
Server: HCP V7.0.0.16
ETag: "764f38262c6e581f678e1ac9b0211ae8"
x-amz-version-id: 87288815588289
Last-Modified: Thu, 20 Dec 2012 19:42:16 GMT
x-amz-meta-author: Morgan White
Content-Type: application/msword
Content-Length: 3552369

Trademark and LegalDisclaimer

© 2016 Hitachi Data Systems Corporation. All rights reserved.