Here’s a sample HEAD request that checks the existence of a bucket named finance.
Request with s3curl command line
./s3curl.pl --id=lgreen --head -- -k "https://finance.europe.hcp.example.com"
Request headers
HEAD / HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 07 February 2020 17:19:26 +0000
Authorization: AWS bGdyZWVu:N2UfjwTaydEqS45O5vgcoGerZKw=
Response headers
HTTP/1.1 200 OK
Date: Fri, 07 February 2020 17:19:26 GMT
Content-Length: 0
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.