wget访问带认证的web页面
作者: 2hei 发表于2009年11月 3日 16:10 版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2009/11/wget-web-auth.html
同样的wget语句在不通的机器上居然执行效果不一样,原因是wget版本的问题:
wget --help | head
GNU Wget 1.9+cvs-stable (Red Hat modified), a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
/usr/bin/wget -O /tmp/2hei.txt --http-user=username --http-passwd=123456 "https://10.10.10.10/login.jsp"
wget --help | head
GNU Wget 1.10.2 (Red Hat modified), a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
/usr/bin/wget -O /tmp/2hei.txt --no-check-certificate --http-user=username --http-password=123456 "https://10.10.10.10/login.jsp"
wget --help | head
GNU Wget 1.9+cvs-stable (Red Hat modified), a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
/usr/bin/wget -O /tmp/2hei.txt --http-user=username --http-passwd=123456 "https://10.10.10.10/login.jsp"
wget --help | head
GNU Wget 1.10.2 (Red Hat modified), a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
/usr/bin/wget -O /tmp/2hei.txt --no-check-certificate --http-user=username --http-password=123456 "https://10.10.10.10/login.jsp"





发表一个评论