shell脚本发送多种curl命令

for id in {1..5}
do
sh -c 'curl -l -H "Content-type: application/json" -X POST "http://127.0.0.1:8909/common/amethod?visitId=1874747&visitNum=1279367&paramCode=123"' &
echo "\nstart $id:1"
sh -c 'curl -l -H "Content-type: application/json" -X POST "http://127.0.0.1:8909/common/bMethod?presNo=3549093&paramCode=123"' &
echo "\nstart $id:2"
sh -c 'curl -l -H "Content-type: application/json" -X POST "http://127.0.0.1:8909/common/cMethod?presNo=3549094&paramCode=123"' &
echo "\nstart $id:3"
done

posted @ 2023-05-09 16:58  HalleyZ  阅读(659)  评论(0编辑  收藏  举报