Skip to content

Instantly share code, notes, and snippets.

@kloon

kloon/curl.sh Secret

Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kloon/3d7bf8d93da028f6b9f7 to your computer and use it in GitHub Desktop.
Save kloon/3d7bf8d93da028f6b9f7 to your computer and use it in GitHub Desktop.
cURL File Upload
curl -u username:password -H "Content-Type: application/binary" \
--data-binary @file.dat -X POST \
"https://domain.com/api/v2/uploads.json?filename=myfile.dat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment