V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Musong
V2EX  ›  程序员

请教一个 url 访问的问题

  •  
  •   Musong · 2023-04-03 14:22:24 +08:00 · 1125 次点击
    这是一个创建于 599 天前的主题,其中的信息可能已经有所发展或是发生改变。
    情况: 目前有一个文件下载路径 https://xxx.xx/file.json
    在 4G 环境下可以下载,在 wifi 下无法访问
    但是相同目录下 https://xxx.xx/file2.json 两种网络均正常访问

    请问下有没有类似 nslookup 之类的命令或其他工具,可以查一下 https://xxx.xx/file.json 在 wifi 下无法访问的原因。
    感谢各位
    8 条回复    2023-04-03 14:42:29 +08:00
    leonshaw
        1
    leonshaw  
       2023-04-03 14:26:42 +08:00
    文件多大?
    Musong
        2
    Musong  
    OP
       2023-04-03 14:29:46 +08:00
    @leonshaw #1 一个 400 多字节的 json
    fisherwei
        3
    fisherwei  
       2023-04-03 14:29:52 +08:00
    curl -v https://xxx.xx/file.json 看看
    collinmehle
        4
    collinmehle  
       2023-04-03 14:30:40 +08:00
    @fisherwei OP 意思是手机上?
    fisherwei
        5
    fisherwei  
       2023-04-03 14:33:06 +08:00
    @collinmehle 没注意是说手机

    手机的话,ios 上有一个 HE.net 出的 app ,叫 Network Tools 。
    https://apps.apple.com/us/app/he-net-network-tools/id858241710
    leonshaw
        6
    leonshaw  
       2023-04-03 14:36:01 +08:00
    @Musong 两个一样大?有点怀疑 mtu
    Musong
        7
    Musong  
    OP
       2023-04-03 14:39:28 +08:00
    @fisherwei #3 试了一下,https://xxx.xx/file.json ,指向的 ip 每次指向不同,但 4G 都能访问
    wifi 在连接 ip 时会超时,十几次只有 1 次成功
    Musong
        8
    Musong  
    OP
       2023-04-03 14:42:29 +08:00
    * Trying [cdn ip] :443...
    * Connected to xxx.xx( [cdn ip] ) port 443 (#0)
    * schannel: disabled automatic use of client certificate
    * ALPN: offers http/1.1
    * ALPN: server accepted http/1.1
    > GET file.json HTTP/1.1
    > Host: xxx.xx
    > User-Agent: curl/7.83.1
    > Accept: */*
    >
    * Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Server: Tengine
    < Content-Type: application/json
    < Content-Length: 463
    < Connection: keep-alive
    < Date: Mon, 03 Apr 2023 06:07:18 GMT
    < x-oss-request-id: 642A6D1628517835305023A5
    < x-oss-cdn-auth: success
    < Accept-Ranges: bytes
    < ETag: "A8659892362ACE6F19A6B8DC5D4A51A7"
    < Last-Modified: Thu, 30 Mar 2023 11:05:03 GMT
    < x-oss-object-type: Normal
    < x-oss-hash-crc64ecma: 2907436546213679395
    < x-oss-storage-class: Standard
    < Content-MD5: qGWYkjYqzm8ZprjcXUpRpw==
    < x-oss-server-time: 49
    < Ali-Swift-Global-Savetime: 1680502038
    < Via: cache46.l2nu20-1[298,297,200-0,M], cache41.l2nu20-1[300,0], vcache4.cn3147[0,0,200-0,H], vcache15.cn3147[2,0]
    < Age: 1478
    < X-Cache: HIT TCP_MEM_HIT dirn:11:108262168
    < X-Swift-SaveTime: Mon, 03 Apr 2023 06:07:18 GMT
    < X-Swift-CacheTime: 3600
    < Timing-Allow-Origin: *
    < EagleId: ddc2a12316805035162551519e
    <
    [{"key":"test","version":1035,"supports":[1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034]},{"key":"fish","version":1035,"supports":[1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034]}]* Connection #0 to xxx.xx left intact
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1134 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:42 · PVG 07:42 · LAX 15:42 · JFK 18:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.