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.hcp.example.com"
Request headers
HEAD / HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Tue, 19 Mar 2013 20:08:59 +0000
Authorization: AWS bGdyZWVu:N2UfjwTaydEqS45O5vgcoGerZKw=
Response headers
HTTP/1.1 200 OK
Date: Tue, 19 Mar 2013 20:08:59 GMT
Server: HCP V7.0.0.16
Content-Length: 0
© 2015 Hitachi Data Systems Corporation. All rights reserved.