尝试镜像本地Intranet站点并使用'wget'找到以前的问题。它对于匿名网站非常有效,但我无法将其用于期望用户名\密码的站点(带有集成Windows身份验证的IIS)。使用wget反对受保护的站点与NTLM
下面是我通过:
的wget -c --http-USER = '域\用户' --http密码= PWD http://local/site -dv
这里是调试输出(请注意我替换了一些虚拟值明显):
Setting --verbose (verbose) to 1 DEBUG output created by Wget 1.11.4 on Windows-MSVC. --2009-07-14 09:39:04-- http://local/site Host `local' has not issued a general basic challenge. Resolving local... seconds 0.00, x.x.x.x Caching local => x.x.x.x Connecting to local|x.x.x.x|:80... seconds 0.00, connected. Created socket 1896. Releasing 0x003e32b0 (new refcount 1). ---request begin--- GET /site/ HTTP/1.0 User-Agent: Wget/1.11.4 Accept: */* Host: local Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 401 Access Denied Server: Microsoft-IIS/5.1 Date: Tue, 14 Jul 2009 13:39:04 GMT WWW-Authenticate: Negotiate WWW-Authenticate: NTLM Content-Length: 4431 Content-Type: text/html ---response end--- 401 Access Denied Closed fd 1896 Unknown authentication scheme. Authorization failed.
添加一个链接到相关的bug票据将在这里有用 – Daenyth 2010-10-16 20:28:56
无法测试它是否属实。但我确认NTLM情况下标准输出的不同行为。 http://www.mail-archive.com/[email protected]/msg00003.html – 2010-10-18 15:42:27