Here’s a sample HEAD request that checks the existence of an object named sales_quotas_2020.pdf in the finance bucket. The request is being made while versioning is disabled for the bucket.
Request with s3curl command line
./s3curl.pl --id=lgreen --head -- -k
"https://finance.europe.hcp.example.com/sales_quotas_2020.pdf"
Request headers
HEAD /sales_quotas_2020.pdf HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 07 February 2020 17:19:26 +0000
Authorization: AWS bGdyZWVu:LDa147ALd+O5Q02LjkGRrXwSGAc=
Response headers
HTTP/1.1 200 OK
Date: Fri, 07 February 2020 17:19:26 GMT
ETag: "62e82b6d3ef16070a8d75ab55c42b80d"
Accept-Ranges: bytes
Last-Modified: Fri, 02 Dec 2016 14:28:48 GMT
Content-Type: application/pdf
Content-Length: 23166
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.