A Minimal, Dead-Simple File Upload Service
Examples:
1. Upload some content
$ curl -d "some content" https://paste.swurl.xyz/content.txt; echo
https://paste.swurl.xyz/41789941bf7ea0ee/content.txt
2. Upload some content from a file
$ curl https://paste.swurl.xyz/content.txt --data-binary @content.txt; echo
https://paste.swurl.xyz/4466af6a05b4cc29/content.txt
3. Deleting a file
$ TMP=$(mktemp)
$ LINK=$(curl -sS https://paste.swurl.xyz/content.txt -d "some content" -D $TMP)
$ # File created, headers stored in temp file
$ DEL=$(cat $TMP | grep -i delete-with | awk '{print$2}'| tr -d '\r')
$ # Gets the deletion key, in the 'X-Delete-With' header
$ curl $LINK
some content
$ curl $LINK -X DELETE -d $DEL
$ curl $LINK
Not found
$ # File has been deleted