Easier cURL uploads
Created by: BHSPitMonkey
It would be fantastic if a simple cURL one-liner like this worked:
curl 'https://ghostbin.com/paste/new' -F 'email@example.com'
That would be possible if that endpoint could accept a
multipart-form-data style request.
Also, the above command would still require some additional flags/parsing to grab the
Location header and build a usable URL. It would be great if the response body contained the fully-qualified paste URL, so that the above
curl command would simply spit out the URL to stdout. A more fleshed-out example of what I'm hoping for:
$ curl 'https://ghostbin.com/paste/new' -F 'lang=C' -F 'firstname.lastname@example.org' https://ghostbin.com/paste/abcde $