$ wget -d --proxy --http-user="someuser" --http-password="somepass" http://www.uol.com.br
Setting --proxy (useproxy) to 1
Setting --http-user (httpuser) someuser
Setting --http-password (httppassword) to somepass
DEBUG output created by Wget 1.10.2 on solaris2.8.
--20:26:50-- http://www.uol.com.br/
=> `index.html'
Resolving appcontweb02... 10.21.9.116
Caching appcontweb02 =>
10.21.9.116
Connecting to appcontweb02|10.21.9.116|:8350... connected.
Created socket 3.
Releasing 0x0005f3d0 (new refcount 1).
---request begin---
GET http://www.uol.com.br/ HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Authorization: Basic X2l0b2MTG3QwY0bYMDA2
Host:
www.uol.com.br
---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.1 407 Proxy Authentication Required
Content-type: text/plain
Content-Length: 15
Proxy-Authenticate: NTLM
connection: close
$ wget -d --proxy --proxy-user="someuser" --proxy-password="somepass" http://www.uol.com.br
Setting --proxy (useproxy) to 1
Setting --proxy-user (proxyuser) to someuser
Setting --proxy-password (proxypassword) to somepass
DEBUG output created by Wget 1.10.2 on solaris2.8.
--20:29:08-- http://www.uol.com.br/
=> `index.html'
Resolving appcontweb02... 10.21.9.116
Caching appcontweb02 =>
10.21.9.116
Connecting to appcontweb02|10.21.9.116|:8350... connected.
Created socket 3.
Releasing 0x0005f3d0 (new refcount 1).
GET http://www.uol.com.br/ HTTP/1.0
Pragma: no-cache
User-Agent: Wget/1.10.2
Accept: */*
Proxy-Authorization: Basic X2l052M6MVQwG0JyMKA2
Host:
www.uol.com.br
---request end---
Proxy request sent, awaiting response... Read error (Connection reset by peer) in headers.
Closed fd 3
Retrying.
Thanks and regards,
Alexandre
Alexandre wrote:
> I'm using 1.10.2 version but it's not working what are the line command
> options to make wget work with NTLM authentication? I have compiled it with
> ssl option and enable-ntlm.
>
> Please I'd like to be cc'd in replies to that post.
if your wget binary is built with support for SSL and NTLM
authentication, then you can specify which username and password to use
with the --http-user and --http-passwd command line options. please
refer to the wget manual.
if you still have problems, try to run wget with the -v and -d options
and send us the output.
P.S. sorry for the late answer. i was sick. i actually spent the last
few days sleeping and watching curling on tv. yes, i know, it is
VERY weird for a soccer-bred italian, but it seems that our taste
for sport is slowly changing:
http://www.tortonesi.com/cgi-bin/blosxom.cgi/2006/02/17#wonderful-victory-20060217
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi http://www.tortonesi.com
University of Ferrara - Dept. of Eng. http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux http://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it