Created
November 8, 2016 15:25
-
-
Save awead/53989e9d4bf7ebb338378a7b3991f52f to your computer and use it in GitHub Desktop.
PUTing big files into Fedora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: using -k for the "insecure" option when connecting to https | |
# Test connection | |
curl -k -u username:password -X GET https://fedora.server/rest | |
# Upload a bigfile | |
curl -k -u username:password -X PUT --data-binary @/path/to/file https://fedora.server/rest/bigfile | |
# Delete it | |
curl -k -u username:password -X DELETE https://fedora.server/rest/bigfile | |
curl -k -u username:password -X DELETE https://fedora.server/rest/bigfile/fcr:tombstone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment