Curl
Use postdata
npm module to extract the post data on the server. Use -k
for https, -u
for auth.
curl --data "param1=value1¶m2=value2" https://localhost:3000/user/re
curl --data "param1=value1¶m2=value2" -k -X POST https://localhost:3000/user/re
curl --form "fileupload=@filename.txt" https://localhost:3000/user/re
curl -u myusername:mypassword http://somesite.com
Git