Created
April 13, 2013 06:04
-
-
Save mazhar266/5377215 to your computer and use it in GitHub Desktop.
Command line cURL for posting data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for posting data only | |
curl --data "param1=value1¶m2=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