Difference between revisions of "HowTo: Checksum calculation via WebDAV"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
xmlns:S="http://srm.lbl.gov/StorageResourceManager"> | xmlns:S="http://srm.lbl.gov/StorageResourceManager"> | ||
<R:Checksums/> | <R:Checksums/> | ||
− | |||
− | |||
</D:prop> | </D:prop> | ||
</D:propfind>' | </D:propfind>' |
Revision as of 10:14, 20 December 2016
Get checksum from a single file
curl -u <user>:<passwd> -X PROPFIND -H Depth:0 https://<dcache_webdav_endpoint>/<path>/<file> --data '<?xml version="1.0" encoding="utf-8"?> <D:propfind xmlns:D="DAV:"> <D:prop xmlns:R="http://www.dcache.org/2013/webdav" xmlns:S="http://srm.lbl.gov/StorageResourceManager"> <R:Checksums/> </D:prop> </D:propfind>'
Get checksum from all files in a directory
curl -u <user>:<passwd> -X PROPFIND -H Depth:1 https://<dcache_webdav_endpoint>/<path>/ --data '<?xml version="1.0" encoding="utf-8"?> <D:propfind xmlns:D="DAV:"> <D:prop xmlns:R="http://www.dcache.org/2013/webdav" xmlns:S="http://srm.lbl.gov/StorageResourceManager"> <R:Checksums/> </D:prop> </D:propfind>'