Skip to content

Instantly share code, notes, and snippets.

@prestontimmons
Created March 24, 2011 21:44
Show Gist options
  • Save prestontimmons/885958 to your computer and use it in GitHub Desktop.
Save prestontimmons/885958 to your computer and use it in GitHub Desktop.
Posting data with curl

Post data to url:

curl -d "k1=v1&k2=v2" http://example.com/

Post multipart form data to url:

curl -F "photo=@test_image.jpg" -F "k1=v1" -F "k2=v2" http://example.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment