(05/24/2011 06:40 AM), Thiago Braga de Souza wrote: > Hello, > > My name is Thiago and I'm starting to use the tool WGET. Usually I can make > my company's downloads page for HTML. With WGET cannot. Can you help me? > Following is the error message below. > > Thank you. > > > > C:\>set proxy=proxylb:8081 > > C:\>wget -d -E --proxy-user=nt\tbsouza -E --proxy-password=********* http:// > www.bmfbovespa.com.br/suplemento/ExecutaAcaoDownload.asp?arquivo=Titulos_Negocia > veis.zip > Setting --html-extension (htmlextension) to 1 > Setting --proxy-user (proxyuser) to nt\tbsouza > Setting --html-extension (htmlextension) to 1 > Setting --proxy-password (proxypassword) to ******** > DEBUG output created by Wget 1.11.4 on Windows-MSVC. > > --2011-05-24 10:32:17-- > http://www.bmfbovespa.com.br/suplemento/ExecutaAcaoDown > load.asp?arquivo=Titulos_Negociaveis.zip > Resolving www.bmfbovespa.com.br... seconds 0.00, 187.72.155.53
You can see that wget's not using the proxy by this line; if it were using an HTTP proxy, wget wouldn't try to resolve the URI's address, just the proxy's (leaving it up to the proxy to do name resolution for URIs). Wget doesn't respect any environment variable named "proxy"; only "http_proxy", "https_proxy", and "ftp_proxy"; so try setting that instead. You can also set it directly within the wget invocation, via -e http_proxy=proxylb:8081 -- Micah J. Cowan http://micah.cowan.name/
