Skip to content

Instantly share code, notes, and snippets.

@tsleyson
Created August 31, 2016 17:24
Show Gist options
  • Save tsleyson/f7783f1effc23461d83144db275ca183 to your computer and use it in GitHub Desktop.
Save tsleyson/f7783f1effc23461d83144db275ca183 to your computer and use it in GitHub Desktop.
cURL: Post json while sending an authentication cookie
curl -H "Content-Type: application/json" -b auth.txt <your url> -d @/path/to/file/containing/json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment