Chinaunix

标题: 用wget 下载有防盗链的winxp繁体版文件 [打印本页]

作者: bailongma    时间: 2006-03-09 10:36
标题: 用wget 下载有防盗链的winxp繁体版文件
前天,客户要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)
作者: bailongma    时间: 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




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2