hosts=(192.168.0.1 127.0.0.1)

ports=(10001 11001 12001)

echo '' > /tmp/advertSystem.txt

for host in ${hosts[*]}
do
for port in ${ports[*]}
do
url="http://${host}:${port}/adfront/v1/_mget?appKey=59D63E8DB3212DAADEA1AA1AECCAB6A0&advId=100279&systemType=0&cityId=360100&specId=41137&userAgent=app&urlRefer=specsummary"
echo ${url} >> /tmp/advertSystem.txt
echo " " >> /tmp/advertSystem.txt
curl -X GET "${url}" >> /tmp/advertSystem.txt
echo "-----------------------------------------------------------------" >> /tmp/advertSystem.txt

done
done

 

 

////////////////////////////////////////////////////////////////////////////////////

curl 'http://192.168.0.1:10001/adfront/v1/_mget?appKey=59D63E8DB3212DAADEA1AA1AECCAB6A0&advId=100300&systemType=1&cityId=330100&seriesId=2902&userAgent=app&urlRefer=seriessummary' -i -w "\ntime_namelookup: "%{time_namelookup}"\ntime_connect: "%{time_connect}"\ntime_appconnect: "%{time_appconnect}"\ntime_pretransfer: "%{time_pretransfer}"\ntime_starttransfer: "%{time_starttransfer}"\ntime_redirect: "%{time_redirect}"\ntime_total: "%{time_total}"\n"

posted on 2020-08-03 14:19  xuxu_dragon  阅读(214)  评论(0编辑  收藏  举报