不带参 get
curl http://127.0.0.1:8000/send -X GET
带json数据 POST
curl -H "Content-Type: application/json" -X POST --data '{"user":"root","password":"admin"}' http://localhost:8000/loginJSON
tengxun curl显示耗时命令 循环curl
curl -o /dev/null -s -w "time_namelookup:%{time_namelookup}\ntime_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http://www.baidu.com"
for i in {1..100}; do curl -H "Content-Type: application/json" -X POST --data '{"username":"root","password":"admin"}' http://localhost:8000/login; done;
参考文章:https://blog.csdn.net/yuezhilangniao/article/details/103476480

916

被折叠的 条评论
为什么被折叠?



