http header
curl -H"Content-Type:text/plain" -H"appid:com.geili.koudai" -d '{"proxy_timestamp":"1441785630661","key":[]}' "http://localhost:8080/appconf/get_config"
查看相应时间
$curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}"\n" "http://www.baidu.com"
0.000::0.000::0.022::0.022::2239.000
-w:按照后面的格式写出rt
- time_namelookup:DNS 解析域名[www.taobao.com]的时间
- time_commect:client和server端建立TCP 连接的时间
- time_starttransfer:从client发出请求;到web的server 响应第一个字节的时间
- time_total:client发出请求;到web的server发送会所有的相应数据的时间
- speed_download:下周速度 单位 byte/s