This post is more than 5 years old
18 Posts
0
895
GET details of a file/object but not the contents
Hi,
I am using curl to get files/objects in my atmos host. Is there a way we can just get the details of the object like the ones below, but not the contents of the file?
x-emc-policy: policy1
< x-emc-meta: serviceclass=policy1, atime=2012-11-07T05:26:47Z, mtime=2012-11-07T05:26:47Z, ctime=2012-11-07T05:26:47Z, itime=2012-11-07T05:25:59Z, type=regular, uid=MYUID, gid=apache, objectid=45678, objname=myfilename, size=10000000, nlink=1, policyname=policy1
< x-emc-useracl: MYUID=FULL_CONTROL
currently I am redirecting the o/p to achieve this, but i would like to know if there is a better way to do it.
I am sorry if this is a repost, but the keywords I used to search did not yield any results I wanted.
Thank you,
Sandeep
rbala1
222 Posts
0
November 7th, 2012 06:00
There is a corresponding HEAD request for every GET request that returns everything except the data in the response body.
sadimadh2
18 Posts
0
November 7th, 2012 06:00
Thank you so much, I should have read the doc more carefully
rbala1
222 Posts
0
November 7th, 2012 06:00
No problem --- happy to help.
Raj