Checking the existence of an object examples

Here’s a sample HEAD request that checks the existence of an object named sales_quotas_2013.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_2013.pdf"

Request headers

HEAD /sales_quotas_2013.pdf HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Thu, 04 Apr 2013 14:54:29 +0000
Authorization: AWS bGdyZWVu:LDa147ALd+O5Q02LjkGRrXwSGAc=

Response headers

HTTP/1.1 200 OK
Date: Thu, 04 Apr 2013 14:54:28 GMT
Server: HCP V7.0.0.16
ETag: "62e82b6d3ef16070a8d75ab55c42b80d"
Last-Modified: Mon, 03 Dec 2012 14:28:48 GMT
Content-Type: application/pdf
Content-Length: 23166

Trademarks and Legal Disclaimer

© 2016 Hitachi Data Systems Corporation. All rights reserved.