wget下载文件 解决需要登录的问题

wget --no-check-certificate --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies -O login.html --post-data "username=xxx&password=xxx" https://www.test.com/login

wget --no-check-certificate --load-cookies cookies.txt --save-cookies cookies.txt --keep-session-cookies https://www.test.com/file.zip

如果需要验证码就暂时还没找到好方法
参考 http://wxf4150.blog.163.com/blog/static/11138083620102155555337/


发表于:2017-11-22 16:03:59

原文链接(转载请保留): http://www.multisilicon.com/blog/a23327065.html

友情链接: MICROIC
首页