Here's a sample HEAD request that checks the metadata of a directory named r&d in the finance directory.
Request with curl command line
curl -k -i -X HEAD http://api.hcp.example.com/swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/r&d/ -H "X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87"
Request headers
HEAD /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/r&d/ HTTP/1.1
X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87
Response headers
HTTP/1.1 200 OK
Date: Fri, 31 Oct 2014 20:55:13 GMT
Server: HCP V7.1.0.353
X-Trans-Id: 05c677f6-2044-412d-a9c6-850298b4971a
Accept-Ranges: bytes
X-Static-Large-Object: false
ETag: d41d8cd98f00b204e9800998ecf8427e
Last-Modified: Fri, 31 Oct 2014 20:10:44 GMT
Content-Type: application/octet-stream
Content-Length: 0
© 2015 Hitachi Data Systems Corporation. All rights reserved.