Skip to content

Instantly share code, notes, and snippets.

@awead
Created November 8, 2016 15:25
Show Gist options
  • Save awead/53989e9d4bf7ebb338378a7b3991f52f to your computer and use it in GitHub Desktop.
Save awead/53989e9d4bf7ebb338378a7b3991f52f to your computer and use it in GitHub Desktop.
PUTing big files into Fedora
# 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