Skip to content

Instantly share code, notes, and snippets.

@whyink
Created December 5, 2012 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save whyink/4212806 to your computer and use it in GitHub Desktop.
Save whyink/4212806 to your computer and use it in GitHub Desktop.
curlPass
ofshard@whyink:~/346321 (master) $ curl -X POST \ -H "Content-type: application/json" \ --data "{ \"credentials\": githubUser:githubPassword }" \ https://nodejitsuUse
r:nodejitsuPass@webhooks.nodejitsu.com/1/auth/github
curl: (6) Couldn't resolve host ' -H'
@whyink
Copy link
Author

whyink commented Dec 5, 2012

ofshard@whyink:~/346321 (master) $ curl -X POST -H "Content-type: application/json" --data "{ "credentials": githubUser:githubPassword }" https://nodejitsuUser:nodejitsuPass@webhooks.nodejitsu.com/1/auth/github
{"error":"app:data:malformed","reason":"The body you posted was not valid for the contenttype you specified","status_code":500}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment