로컬 인트라넷 사이트를 미러링하려고하고 'wget'을 사용하여 이전 질문을 찾았습니다. 익명의 사이트에서는 잘 작동하지만 username \ password (Windows 통합 인증을 사용하는 IIS)가 필요한 사이트에 대해서는 사용할 수 없습니다.NTLM을 사용하여 보호 된 사이트에 대해 wget 사용
wget과 -c --http 사용자 = '도메인 \ 사용자'--http-비밀번호 여기 http://local/site -dv
는 PWD입니다 = 여기
내가 전달할 것입니다 디버그 출력 (I 분명 더미 값 일부를 대체 주) :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.
관련 버그 티켓에 대한 링크를 추가하면 유용합니다. – Daenyth
사실인지 아직 테스트 할 수 없습니다. 하지만 NTLM 경우 stdout 다른 동작을 확인합니다. http://www.mail-archive.com/[email protected]/msg00003.html –
저 또한 저 또한 저를 위해 작동하는지 확인할 수 없습니다. 'wget --version'은 cygwin에 내장 된 GNU Wget 1.12를보고합니다. + 다이제스트 + ipv6 + nls + ntlm + opie + md5/openssl + https -gnutls + openssl + iri'. 그러나 제 경우 서버는'WWW-Authenticate : Negotiate' 만 제공합니다 (NTLM 또는 Kerberos 중 하나라고 생각합니다 - 협상). –