HTTP下载如果下载回包的文件名有非法字符,文件将不能下载

链接日志:

2018-11-25 16:10:49 HTTP/1.1 206 Partial Content
2018-11-25 16:10:49 Last-Modified: Sat, 24 Nov 2018 17:32:53 GMT
2018-11-25 16:10:49 Content-Type: video/mp4
2018-11-25 16:10:49 Content-Disposition: attachment; filename=“銆愬畬鏁寸増涓婇泦銆戝湅姘戦花鏀跺京鍙颁腑銆佸桨鍖栥€侀洸鏋楋紒涓彴鐏f皯閫查花娼颁笉鎴愯粛锛熷皯搴锋埌鎯呭 20181124.mp4”
2018-11-25 16:10:49 Date: Sun, 25 Nov 2018 08:09:19 GMT
2018-11-25 16:10:49 Expires: Sun, 25 Nov 2018 08:09:19 GMT
2018-11-25 16:10:49 Cache-Control: private, max-age=21215
2018-11-25 16:10:49 Content-Range: bytes 272096815-359300500/361106031
2018-11-25 16:10:49 Accept-Ranges: bytes
2018-11-25 16:10:49 Content-Length: 87203686
2018-11-25 16:10:49 Connection: close
2018-11-25 16:10:49 Alt-Svc: quic=":443"; ma=2592000; v=“44,43,39,35”
2018-11-25 16:10:49 X-Content-Type-Options: nosniff
2018-11-25 16:10:49 Server: gvs 1.0
2018-11-25 16:10:50 开始读取数据…
2018-11-25 16:16:26 成功收到数据:87203686字节
2018-11-25 16:16:26 连接被服务器关闭
2018-11-25 16:16:26 开始连接r3—sn-ug5onuxaxjvh-3i8e.googlevideo.com:443…
2018-11-25 16:16:28 连接r3—sn-ug5onuxaxjvh-3i8e.googlevideo.com:443成功
2018-11-25 16:16:28 GET /videoplayback?ipbits=0&key=cms1&ip=2a01%3A4f8%3A191%3A1ac%3A%3A2&source=youtube&ei=Wlj6W6vXGIi9gAe-_7TgDA&id=o-APA1wLjJrKnLK9lBdnc1I027nd0dWRsvUMfPeNAtFNe1&sparams=dur,ei,expire,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pcm2cms,pl,ratebypass,requiressl,source&fvip=3&expire=1543154874&txp=4530432&itag=22&ratebypass=yes&mime=video%2Fmp4&dur=3772.755&pl=24&requiressl=yes&lmt=1543080773194023&c=WEB&signature=7782DB6352394B82CC4DB15518A7388BCD85CF03.303D437449DD9F2ECD289BA787D780AC4A5FABA3&title=%E3%80%90
2018-11-25 16:16:28 Host: r3—sn-ug5onuxaxjvh-3i8e.googlevideo.com
2018-11-25 16:16:28 Connection: close
2018-11-25 16:16:28 Accept: /
2018-11-25 16:16:28 Range: bytes=252224714-256334506
2018-11-25 16:16:28 User-Agent: Mozilla/4.0 (compatible; MSIE 11.; Windows NT 6.2; .NET4.0C; .NET4.0E; InfoPath.3)
2018-11-25 16:16:28 Pragma: no-cache
2018-11-25 16:16:28 Cache-Control: no-cache
2018-11-25 16:16:29 HTTP/1.1 206 Partial Content
2018-11-25 16:16:29 Last-Modified: Sat, 24 Nov 2018 17:32:53 GMT
2018-11-25 16:16:29 Content-Type: video/mp4
2018-11-25 16:16:29 Content-Disposition: attachment; filename=“銆愬畬鏁寸増涓婇泦銆戝湅姘戦花鏀跺京鍙颁腑銆佸桨鍖栥€侀洸鏋楋紒涓彴鐏f皯閫查花娼颁笉鎴愯粛锛熷皯搴锋埌鎯呭 20181124.mp4”
2018-11-25 16:16:29 Date: Sun, 25 Nov 2018 08:14:58 GMT
2018-11-25 16:16:29 Expires: Sun, 25 Nov 2018 08:14:58 GMT
2018-11-25 16:16:29 Cache-Control: private, max-age=20876
2018-11-25 16:16:29 Content-Range: bytes 252224714-256334506/361106031
2018-11-25 16:16:29 Accept-Ranges: bytes
2018-11-25 16:16:29 Content-Length: 4109793
2018-11-25 16:16:29 Connection: close
2018-11-25 16:16:29 Alt-Svc: quic=":443"; ma=2592000; v=“44,43,39,35”
2018-11-25 16:16:29 X-Content-Type-Options: nosniff
2018-11-25 16:16:29 Server: gvs 1.0
2018-11-25 16:16:29 开始读取数据…
2018-11-25 16:16:56 成功收到数据:3378489字节
2018-11-25 16:16:56 连接关闭
2018-11-25 16:16:56 开始连接r3—sn-ug5onuxaxjvh-3i8e.googlevideo.com:443…
2018-11-25 16:16:58 连接r3—sn-ug5onuxaxjvh-3i8e.googlevideo.com:443成功
2018-11-25 16:16:58 GET /videoplayback?ipbits=0&key=cms1&ip=2a01%3A4f8%3A191%3A1ac%3A%3A2&source=youtube&ei=Wlj6W6vXGIi9gAe-_7TgDA&id=o-APA1wLjJrKnLK9lBdnc1I027nd0dWRsvUMfPeNAtFNe1&sparams=dur,ei,expire,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pcm2cms,pl,ratebypass,requiressl,source&fvip=3&expire=1543154874&txp=4530432&itag=22&ratebypass=yes&mime=video%2Fmp4&dur=3772.755&pl=24&requiressl=yes&lmt=1543080773194023&c=WEB&signature=7782DB6352394B82CC4DB15518A7388BCD85CF03.303D437449DD9F2ECD289BA787D780AC4A5FABA3&title=%E3%80%90
2018-11-25 16:16:58 Host: r3—sn-ug5onuxaxjvh-3i8e.googlevideo.com
2018-11-25 16:16:58 Connection: close
2018-11-25 16:16:58 Accept: /
2018-11-25 16:16:58 Range: bytes=271726052-272096814
2018-11-25 16:16:58 User-Agent: Mozilla/4.0 (compatible; MSIE 11.; Windows NT 6.2; .NET4.0C; .NET4.0E; InfoPath.3)
2018-11-25 16:16:58 Pragma: no-cache
2018-11-25 16:16:58 Cache-Control: no-cache
2018-11-25 16:16:59 HTTP/1.1 206 Partial Content
2018-11-25 16:16:59 Last-Modified: Sat, 24 Nov 2018 17:32:53 GMT
2018-11-25 16:16:59 Content-Type: video/mp4
2018-11-25 16:16:59 Content-Disposition: attachment; filename=“銆愬畬鏁寸増涓婇泦銆戝湅姘戦花鏀跺京鍙颁腑銆佸桨鍖栥€侀洸鏋楋紒涓彴鐏f皯閫查花娼颁笉鎴愯粛锛熷皯搴锋埌鎯呭 20181124.mp4”
2018-11-25 16:16:59 Date: Sun, 25 Nov 2018 08:15:28 GMT
2018-11-25 16:16:59 Expires: Sun, 25 Nov 2018 08:15:28 GMT
2018-11-25 16:16:59 Cache-Control: private, max-age=20846
2018-11-25 16:16:59 Content-Range: bytes 271726052-272096814/361106031
2018-11-25 16:16:59 Accept-Ranges: bytes
2018-11-25 16:16:59 Content-Length: 370763
2018-11-25 16:16:59 Connection: close
2018-11-25 16:16:59 Alt-Svc: quic=":443"; ma=2592000; v=“44,43,39,35”
2018-11-25 16:16:59 X-Content-Type-Options: nosniff
2018-11-25 16:16:59 Server: gvs 1.0
2018-11-25 16:16:59 开始读取数据…
2018-11-25 16:17:00 成功收到数据:87990字节
2018-11-25 16:17:00 连接关闭
2018-11-25 16:17:00 没有需要下载的区域
2018-11-25 16:17:00 工作线程停止
2018-11-25 16:16:40 工作线程启动
2018-11-25 16:16:40 开始连接r8—sn-ug5onuxaxjvh-n8vz.googlevideo.com:443…
2018-11-25 16:16:43 连接r8—sn-ug5onuxaxjvh-n8vz.googlevideo.com:443成功
2018-11-25 16:16:43 GET /videoplayback?itag=22&pl=24&dur=1544.428&c=WEB&ip=2a01%3A4f8%3A191%3A1ac%3A%3A2&key=cms1&source=youtube&expire=1543155079&id=o-AAb__O225_1y1SRiaaaPxt-XYM2-lDvtKl48_9QiXonS&sparams=dur,ei,expire,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pl,ratebypass,requiressl,source&mime=video%2Fmp4&lmt=1543122349909822&signature=26EDB540B83A97CC7B7C15A4C150ED789503684F.724810AAA54439A49913C6BC4C69547C78203278&fvip=1&ei=J1n6W5b7IZfB-gbAzaW4Dw&txp=5530432&ratebypass=yes&ipbits=0&requiressl=yes&title=%E3%80%8A%E6%B5%B
2018-11-25 16:16:43 Host: r8—sn-ug5onuxaxjvh-n8vz.googlevideo.com
2018-11-25 16:16:43 Connection: close
2018-11-25 16:16:43 Accept: /
2018-11-25 16:16:43 User-Agent: Mozilla/4.0 (compatible; MSIE 11.; Windows NT 6.2; .NET4.0C; .NET4.0E; InfoPath.3)
2018-11-25 16:16:43 Pragma: no-cache
2018-11-25 16:16:43 Cache-Control: no-cache
2018-11-25 16:16:44 HTTP/1.1 200 OK
2018-11-25 16:16:44 Last-Modified: Sun, 25 Nov 2018 05:05:49 GMT
2018-11-25 16:16:44 Content-Type: video/mp4
2018-11-25 16:16:44 Content-Disposition: attachment; filename="銆婃捣宄′袱宀搞€?20181124
2018-11-25 16:16:44 Date: Sun, 25 Nov 2018 08:15:13 GMT
2018-11-25 16:16:44 Expires: Sun, 25 Nov 2018 08:15:13 GMT
2018-11-25 16:16:44 Cache-Control: private, max-age=21066
2018-11-25 16:16:44 Accept-Ranges: bytes
2018-11-25 16:16:44 Content-Length: 94259998
2018-11-25 16:16:44 Connection: close
2018-11-25 16:16:44 Alt-Svc: quic=":443"; ma=2592000; v=“44,43,39,35”
2018-11-25 16:16:44 X-Content-Type-Options: nosniff
2018-11-25 16:16:44 Server: gvs 1.0
2018-11-25 16:16:44 开始读取数据…
2018-11-25 16:16:53 成功收到数据:563652字节
2018-11-25 16:16:53 连接关闭
2018-11-25 16:16:53 工作线程停止

任务日志:

2018-11-25 16:13:35 下载任务启动
2018-11-25 16:13:38 下载文件重命名为: 《海峡两岸》 20181124
2018-11-25 16:13:38 创建文件失败: 《海峡两岸》 20181124
2018-11-25 16:13:38 开始查找镜像地址…
2018-11-25 16:13:40 找到0个镜像地址
2018-11-25 16:13:43 文件写入失败: D:\Downloads\《海峡两岸》 20181124
2018-11-25 16:14:07 下载任务启动
2018-11-25 16:14:10 下载文件重命名为: 《海峡两岸》 20181124
2018-11-25 16:14:10 创建文件失败: 《海峡两岸》 20181124
2018-11-25 16:14:10 开始查找镜像地址…
2018-11-25 16:14:12 找到0个镜像地址
2018-11-25 16:14:14 文件写入失败: D:\Downloads\《海峡两岸》 20181124
2018-11-25 16:15:41 下载任务启动
2018-11-25 16:15:46 下载文件重命名为: 《海峡两岸》 20181124
2018-11-25 16:15:46 创建文件失败: 《海峡两岸》 20181124
2018-11-25 16:15:46 开始查找镜像地址…
2018-11-25 16:15:48 找到0个镜像地址
2018-11-25 16:15:55 文件写入失败: D:\Downloads\《海峡两岸》 20181124
2018-11-25 16:16:10 下载任务启动
2018-11-25 16:16:13 下载文件重命名为: 《海峡两岸》 20181124
2018-11-25 16:16:13 创建文件失败: 《海峡两岸》 20181124
2018-11-25 16:16:13 开始查找镜像地址…
2018-11-25 16:16:15 找到0个镜像地址
2018-11-25 16:16:20 文件写入失败: D:\Downloads\《海峡两岸》 20181124
2018-11-25 16:16:40 下载任务启动
2018-11-25 16:16:44 下载文件重命名为: 《海峡两岸》 20181124
2018-11-25 16:16:44 创建文件失败: 《海峡两岸》 20181124
2018-11-25 16:16:44 开始查找镜像地址…
2018-11-25 16:16:47 找到0个镜像地址
2018-11-25 16:16:53 文件写入失败: D:\Downloads\《海峡两岸》 20181124

使用的版本是1.52Stable

youtube h5 206啊,,等官方看看吧