#!/bin/bash
echo "1.拉流接口"
curl -o /dev/null -w "\n DNS 解析域名的时间\n namelookup:"%{time_namelookup}"\n client和server端建立TCP 连接的时间\n time_connect:"%{time_connect}"\n 从client发出请求;到web的server 响应第一个字节的时间\n time_starttransfer:"%{time_starttransfer}"\n client发出请求;到web的server发送会所有的相应数据的时间\n time_total:"%{time_total}"\n 下载速度 单位 byte/s\n speed_download(byte/s):"%{speed_download}"\n" 'https://********.********.********' -H 'sec-ch-ua: nwjs 75' -H 'Sec-Fetch-Mode: cors' -H 'Origin: http://127.0.0.1:56074' -H 'Accept-Encoding: gzip, deflate, br' -H 'Sec-Fetch-Dest: empty' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.02.2003250 MicroMessenger/7.0.4 Language/zh_CN webview/' -H 'content-type: application/json;charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: https://****.com/********/devtools/page-frame.html' -H 'Sec-Fetch-Site: cross-site' -H 'auth-token: ********' --data-binary '{"action":1,"vid":"********","*****":"********","uid":"********","appId":"********","**":"********","***":"********","**":[1]}' --compressed
echo "2.搜索接口"
curl -o /dev/null -w "\n DNS 解析域名的时间\n namelookup:"%{time_namelookup}"\n client和server端建立TCP 连接的时间\n time_connect:"%{time_connect}"\n 从client发出请求;到web的server 响应第一个字节的时间\n time_starttransfer:"%{time_starttransfer}"\n client发出请求;到web的server发送会所有的相应数据的时间\n time_total:"%{time_total}"\n 下载速度 单位 byte/s\n speed_download(byte/s):"%{speed_download}"\n" 'https://********.********.********' -H 'sec-ch-ua: nwjs 75' -H 'Sec-Fetch-Mode: cors' -H 'Origin: http://127.0.0.1:56074' -H 'Accept-Encoding: gzip, deflate, br' -H 'Sec-Fetch-Dest: empty' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.02.2003250 MicroMessenger/7.0.4 Language/zh_CN webview/' -H 'content-type: application/json;charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: https://****.com/********/devtools/page-frame.html' -H 'Sec-Fetch-Site: cross-site' -H 'auth-token: ********' --data-binary '{"action":1,"vid":"********","*****":"********","uid":"********","appId":"********","**":"********","***":"********","**":[1]}' --compressed
echo "3.资源地址"
wget -O /dev/null https://*.mp4