linux 命令行发送get post请求
1. curl 命令发送GET请求:
curl -v "http://127.0.0.1:80/xcloud/test?version=1&client_version=1.1.0&seq=1001&host=aaa.com"
2.curl 命令发送POST请求:
curl -d "username=user1&password=123" "www.test.com/login"
curl -i -k -H "Content-type: application/json" -X POST -d '{"version":"6.6.0", "from":"mu", "product_version":"1.1.1.0"}' https://10.10.10.10:80/test
3. wget命令传递
wget –post-data 'username=user1&password=123' http://www.baidu.com
实操用起来:
每天一小步,人生一大步!Good luck~