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

实操用起来:

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM