// get请求,无输出
curl -o /dev/null -s -w time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t"%{time_starttransfer}"\n"time_total:"\t\t"%{time_total}"\n"time_redirect:"\t\t"%{time_redirect}"\n" https://www.xenice.com
// get请求, 有输出
curl -w "\n\n"time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t"%{time_starttransfer}"\n"time_total:"\t\t"%{time_total}"\n"time_redirect:"\t\t"%{time_redirect}"\n" https://www.xenice.com/wp-json/wp/v2/post
// post请求, 有输出
curl -w "\n\n"time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t"%{time_starttransfer}"\n"time_total:"\t\t"%{time_total}"\n"time_redirect:"\t\t"%{time_redirect}"\n" -X POST -H "Content-Type: application/json" https://www.xenice.com/wp-json/wp/v1/test
使用curl测试API速度
上一篇文章
怎么将cos对象存储挂载至本地磁盘 下一篇文章
限制wordpress前端访问,后台和手机均可访问
怎么将cos对象存储挂载至本地磁盘 下一篇文章
限制wordpress前端访问,后台和手机均可访问