HCP Tenant Management Help


Example 1: Checking the existence of an object

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

Request headers

HEAD /sales_quotas_2019.pdf HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 10 May 2019 17:19:26 +0000
Authorization: AWS bGdyZWVu:LDa147ALd+O5Q02LjkGRrXwSGAc=

Response headers

HTTP/1.1 200 OK
Date: Fri, 10 May 2019 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, 2019 Hitachi Vantara Corporation. All rights reserved.