LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2007, 03:09 AM   #1
willie118
LQ Newbie
 
Registered: May 2007
Location: China
Posts: 15

Rep: Reputation: 0
wget with proxy,but authenticate fail


My workplace has just put in a proxy server, which each user needs to log into to be able to access the web.

If I open firefox after I have put in the proxy server details it prompts me to enter a username and password. I put these in and all works fine.

However if I try and wget a file it won't work. I use wget daily and need to keep using it.

I have edited the .wgetrc file and added the following...


http_proxy = 192.168.10.33:8080

use_proxy = on

proxy-user = myaccount
proxy-passwd = mypasswd


Each time I try and wget a file I get this...

[root@mylinux ~]# wget http://definition.symantec.com/defs/...08-007-unix.sh
--14:28:54-- http://definition.symantec.com/defs/...08-007-unix.sh
Connecting to 192.168.10.33:8080... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
14:28:54 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ).


Can anyone please help me?
Thanks alot.
 
Old 07-09-2007, 03:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Note that in newer versions of wget the "proxy-passwd" has changed to "proxy-password"
 
Old 07-09-2007, 03:38 AM   #3
willie118
LQ Newbie
 
Registered: May 2007
Location: China
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
Note that in newer versions of wget the "proxy-passwd" has changed to "proxy-password"
I changed "proxy-passwd" to "proxy-password",but get the same error.
 
Old 07-09-2007, 03:57 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
http_proxy = 192.168.10.33:8080
Change also this to be a URL:
Code:
http_proxy = http://192.168.10.33:8080
and see if it works
 
Old 07-09-2007, 04:26 AM   #5
willie118
LQ Newbie
 
Registered: May 2007
Location: China
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
Change also this to be a URL:
Code:
http_proxy = http://192.168.10.33:8080
and see if it works
sorry,it not works. also the same error.

Maybe the format of proxy-user and proxy-password is wrong.
 
Old 07-09-2007, 06:14 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Run wget from the command line using the "-d" and "-v" options to see if you find what is wrong. Prior of doing this rename .wgetrc to something else so it will not be used.
 
Old 07-09-2007, 08:06 PM   #7
willie118
LQ Newbie
 
Registered: May 2007
Location: China
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
Run wget from the command line using the "-d" and "-v" options to see if you find what is wrong. Prior of doing this rename .wgetrc to something else so it will not be used.
rename .wgetrc and add "-d" and "-v" options,then it can not connected successful.I get this ...

[root@mylinux ~]# wget http://definitions.symantec.com/defs...08-007-unix.sh -v -d
DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu.

--09:02:07-- http://definitions.symantec.com/defs...-007-unix.sh-v
Resolving definitions.symantec.com... 61.120.150.32, 61.120.150.80, 61.120.150.14, ...
Caching definitions.symantec.com => 61.120.150.32 61.120.150.80 61.120.150.14 61.120.150.15 61.120.150.22 61.120.150.30
Connecting to definitions.symantec.com|61.120.150.32|:80...



If I not rename .wgetrc that use proxy and add "-d" and "-v" options,then it authenticate fail.I get this...

[root@mylinux ~]# wget http://definitions.symantec.com/defs...08-007-unix.sh -v -d
DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu.

--09:01:01-- http://definitions.symantec.com/defs...-007-unix.sh-v
Connecting to 192.168.10.33:8080... connected.
Created socket 3.
Releasing 0x093e9e18 (new refcount 0).
Deleting unused 0x093e9e18.

---request begin---
GET http://definitions.symantec.com/defs...-007-unix.sh-v HTTP/1.0
User-Agent: Wget/1.10.2 (Red Hat modified)
Accept: */*
Proxy-Authorization: Basic YXZzMDM1NzU6d2lsbGllMTE4
Host: definitions.symantec.com

---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
Via: 1.1 ISA2004
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 4131

---response end---
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
hs->local_file is: 20070708-007-unix.sh-v (not existing)
TEXTHTML is on.
Closed fd 3
09:01:01 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ).
 
Old 07-10-2007, 02:15 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
When I said you to run wget from cli, I meant to use the proxy-related options in your wget command plus -d and -v for debugging. Anyway from the output it seems that there this is a problem between wget and ISA proxy. Doing a little googling I've found this post. Try the 2 solutions proposed and see if you can connect.

Regards
 
Old 07-10-2007, 09:19 PM   #9
willie118
LQ Newbie
 
Registered: May 2007
Location: China
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
When I said you to run wget from cli, I meant to use the proxy-related options in your wget command plus -d and -v for debugging. Anyway from the output it seems that there this is a problem between wget and ISA proxy. Doing a little googling I've found this post. Try the 2 solutions proposed and see if you can connect.

Regards
Thank you very much!

I try the first solution with ntlmaps and connect successful.

Ntlmaps is a very useful program. The symantec antivirus was not able to update virus definition with liveupdate. Now,through ntlmaps contact ISA it liveupdate ok.

My English is poor, sometimes mybe use the CHINESE ENGLISH.thank you for your patience.

Best regards!
 
Old 01-17-2010, 05:56 AM   #10
shrik_kshir
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
my uni proxy has basic authentication scheme.
what should I do to make wget & apt-get work?
I tried setting http_proxy environment variable and defining proxy-user & proxy-password options in wget but nothing seems to work
please help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wget fail to download pdf files powah Linux - Software 2 05-04-2006 03:38 PM
authenticate a web filter in the terminal? (for use of yum, wget, etc) unknown_mosquito Linux - Security 2 05-02-2006 08:51 PM
wget through proxy TheRealDeal Linux - Networking 5 09-14-2005 06:07 AM
wget with proxy? Cornholio Linux - Software 8 01-13-2005 02:12 AM
wget won't authenticate with a MPS 2.0 Proxy graywind Linux - Networking 0 12-16-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration