Skip to content

Instantly share code, notes, and snippets.

@mazhar266
Created April 13, 2013 06:04
Show Gist options
  • Save mazhar266/5377215 to your computer and use it in GitHub Desktop.
Save mazhar266/5377215 to your computer and use it in GitHub Desktop.
Command line cURL for posting data
# for posting data only
curl --data "param1=value1&param2=value2" http://example.com/resource.cgi
# for posting files
curl --form "fileupload=@filename.txt" http://example.com/resource.cgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment