Created
December 23, 2009 01:40
-
-
Save fairchild/262248 to your computer and use it in GitHub Desktop.
example of posting an anonymous gist with curl
This file contains 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
curl -i -F file_name[gistfile1]='foooo' -F file_contents[gistfile1]='abcde' -F file_ext[gistfile1]='.sh' http://gist.github.com/gists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone wondering upon this gist. The new way to do this is:
curl --request POST --data {"description":"example of posting an anonymous gist with curl","public":"true","files":{"foooo.sh":{"content":"abcde"}} https://api.github.com/gists