免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2481 | 回复: 1
打印 上一主题 下一主题

用wget 下载有防盗链的winxp繁体版文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-09 10:36 |只看该作者 |倒序浏览
前天,客户要winxp的繁体版的安装盘,好不容易在网上找到了个winxp繁体版下载地址,用FlashGet 下载了一夜都没搞定(网速慢的原因),实在难忍!!!太浪费时间和国家能源了!!!

linux 系统下有个wget 程序,支持多线程和断点下载,就让我们用wget来模仿FlashGet的全部下载过程:

winxp的繁体版的安装盘,是这个链接:http://www.lm8.cn/SoftDown.asp?ID=19453 (网上搜来的,能下载)

用超级用户权限登陆Linux 服务器后:

测试:
# wget http://www.lm8.cn/SoftDown.asp?ID=19453
找到文件的实际地址:http://ftp2.lm8.cn:8183/www.lm8.cn/WinXPSP2VOL_TW/WinXPSP2VOL_TW.rar

开始下载:
# wget -b -t 0 -c -d "http://ftp2.lm8.cn:8183/www.lm8.cn/WinXPSP2VOL_TW/WinXPSP2VOL_TW.rar" --header="Referer: http://www.lm8.cn/SoftDown.asp?ID=19453" --header="Cookie: Flag=UURealAntiLink; path=/" --user-agent=""

查看日志:
# vi wget-log

愿与广大的Linux爱好者能有更多的交流。
我的E-mail: gongyan#esuonet.com(把#换成@),QQ: 235868655(验证信息:linux mailer)

论坛徽章:
0
2 [报告]
发表于 2006-03-09 10:50 |只看该作者
测试断点续传:
# ps -A | grep wget
26948 ?        00:00:00 wget
# kill 26948
# wget -b -t 0 -c -d "http://ftp2.lm8.cn:8183/www.lm8.cn/WinXPSP2VOL_TW/WinXPSP2VOL_TW.rar" --header="Referer: http://www.lm8.cn/SoftDown.asp?ID=19453" --header="Cookie: Flag=UURealAntiLink; path=/" --user-agent=""
# vi wget-log.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP