HTTP协议规范,kangle回应控制添加Accept-Ranges: bytes头部,让软件检测支持多线程下载的方法
而且有些下载地址,是支持断点续传的,IDM这些都能进行多线程下载,就提示这样了,,然后就不能多线程了而且文件中途暂停或者出什么问题了,,,显示这个的话,进度就从0重新开始了!是下载地址服务器方面缺少什么回应头部吗
例如:http://download.kangleweb.com/windows/kangle-3.5.18.1-x64.exe
支持的例如:http://mirrors.huaweicloud.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso
http://mirrors.aliyun.com/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso
抓包对比看了下是少了Accept-Ranges: bytes头部,软件判定就不支持了,,,这个无所谓了,是网站管理员的话自己能加
GET /windows/kangle-3.5.18.1-x64.exe HTTP/1.1
Host: download.kangleweb.com
Connection: close
Accept: /
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.1 200 OK
Server: kangle/3.5.16
Date: Thu, 05 Dec 2019 22:08:31 GMT
Last-Modified: Mon, 18 Nov 2019 05:37:07 GMT
Content-Type: application/octet-stream
X-Cache: HIT from fs-20
Content-Length: 15893323
Connection: close
GET /centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso HTTP/1.1
Host: mirrors.huaweicloud.com
Connection: close
Accept: /
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.1 200 OK
Server: CloudWAF
Date: Mon, 09 Dec 2019 20:19:36 GMT
Content-Type: application/octet-stream
Content-Length: 4664066048
Connection: close
Set-Cookie: HWWAFSESID=c7f4d731a273006503; path=/
Set-Cookie: HWWAFSESTIME=1575922776460; path=/
Last-Modified: Wed, 11 Sep 2019 18:51:26 GMT
ETag: “5d79422e-116000000”
Accept-Ranges: bytes
GET /centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso HTTP/1.1
Host: mirrors.aliyun.com
Connection: close
Accept: /
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.1 200 OK
Server: Tengine
Content-Type: application/octet-stream
Content-Length: 4664066048
Connection: close
Date: Mon, 09 Dec 2019 20:27:22 GMT
Last-Modified: Wed, 11 Sep 2019 18:51:26 GMT
ETag: “5d79422e-116000000”
Expires: Mon, 09 Dec 2019 22:27:22 GMT
Cache-Control: max-age=7200
Via: cn1891.l1, cache13.cn1891, l2cn1828.l2, cache49.l2cn1828, osm-sh-ecs-1, cache49.l2cn1828, cache24.l2cn1828, vcache2.cn1892, vcache17.cn1892
Accept-Ranges: bytes
Ali-Swift-Global-Savetime: 1571941598
Age: 29
X-Cache: HIT TCP_REFRESH_HIT dirn:1:285128692
X-Swift-SaveTime: Mon, 09 Dec 2019 20:27:51 GMT
X-Swift-CacheTime: 7171
Timing-Allow-Origin: *
EagleId: 249f61a515759232710702168e
知道问题了,添加就很简单了,回应控制,添加头部模块,写上则OK
HTTP协议规范:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Accept-Ranges
{:3040:}蹭蹭
页:
[1]