V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
isbase
V2EX  ›  HTTP

有个用于测试 HTTPS 链接各阶段耗时的命令行工具想不起来叫啥了

  •  
  •   isbase · 211 天前 · 891 次点击
    这是一个创建于 211 天前的主题,其中的信息可能已经有所发展或是发生改变。

    用法类似 curl https://example.com

    它可以输出请求到响应各阶段的耗时,包括 DNS 解析、TLS 握手、等信息

    3 条回复    2023-10-08 03:51:52 +08:00
    Livid
        1
    Livid  
    MOD
       211 天前   ❤️ 13
    curl -o /dev/null -s -w " \
    namelookup: %{time_namelookup}\n \
    connect: %{time_connect}\n \
    appconnect: %{time_appconnect}\n \
    pretransfer: %{time_pretransfer}\n \
    redirect: %{time_redirect}\n \
    starttransfer: %{time_starttransfer}\n \
    total: %{time_total}\n" \
    https://www.v2ex.com/
    Yosomi
        2
    Yosomi  
       210 天前 via iPhone
    Routeros
        3
    Routeros  
       202 天前
    curl -X GET -v "https://www.baidu.cn/" -H "accept: */*" -w "\n"DNS 时间:"%{time_namelookup}\n"到握手时间:"%{time_connect}\n"握手时间:"%{time_appconnect}\n"re 时间:"%{time_redirect}\n"到即将传输开始时间:"%{time_pretransfer}\n"到传输第一个字节时间"%{time_starttransfer}\n"总时间:"%{time_total}\n"下载速度:"%{speed_download}"Bps"\n"下载总量:"%{size_download}"B"\n"
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1916 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:15 · PVG 00:15 · LAX 09:15 · JFK 12:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.