请教一个 url 访问的问题

2023-04-03 14:22:24 +08:00
 Musong
情况: 目前有一个文件下载路径 https://xxx.xx/file.json
在 4G 环境下可以下载,在 wifi 下无法访问
但是相同目录下 https://xxx.xx/file2.json 两种网络均正常访问

请问下有没有类似 nslookup 之类的命令或其他工具,可以查一下 https://xxx.xx/file.json 在 wifi 下无法访问的原因。
感谢各位
1125 次点击
所在节点    程序员
8 条回复
leonshaw
2023-04-03 14:26:42 +08:00
文件多大?
Musong
2023-04-03 14:29:46 +08:00
@leonshaw #1 一个 400 多字节的 json
fisherwei
2023-04-03 14:29:52 +08:00
curl -v https://xxx.xx/file.json 看看
collinmehle
2023-04-03 14:30:40 +08:00
@fisherwei OP 意思是手机上?
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
2023-04-03 14:36:01 +08:00
@Musong 两个一样大?有点怀疑 mtu
Musong
2023-04-03 14:39:28 +08:00
@fisherwei #3 试了一下,https://xxx.xx/file.json ,指向的 ip 每次指向不同,但 4G 都能访问
wifi 在连接 ip 时会超时,十几次只有 1 次成功
Musong
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/929411

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX