LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2010, 06:38 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Rep: Reputation: 33
Problem by using wget: ERROR 407: Proxy Authentication Required


I try to download the Tomcat from my LINUX machine with command:
Code:
wget -d -v http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
I got error as follow:
Code:
[root@s003ap23-test opt]# wget -d -v http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu.

--12:32:44--  http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
           => `apache-tomcat-5.5.23.zip'
Connecting to 172.23.10.3:8080... connected.
Created socket 3.
Releasing 0x08b75d10 (new refcount 0).
Deleting unused 0x08b75d10.

---request begin---
GET http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip HTTP/1.0
User-Agent: Wget/1.10.2 (Red Hat modified)
Accept: */*
Host: archive.apache.org

---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Tue, 31 Aug 2010 10:32:44 GMT
Content-Type: text/html
Content-Length: 1563
Expires: Tue, 31 Aug 2010 10:32:44 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: Basic realm="Internet Access - Please put in Domain User and Password"
X-Cache: MISS from s003is05.proactiv.de
Proxy-Connection: close

---response end---
407 Proxy Authentication Required
Closed fd 3
12:32:44 ERROR 407: Proxy Authentication Required.
How can I put the user name and password?
 
Old 08-31-2010, 07:49 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
You should be able to use the “http_proxy”, “ftp_proxy”, and “https_proxy” environment variables, and wget will use them. Each variable is defined like this:
Code:
— xxx_proxy=http://proxy:port
or
— xxx_proxy=http://user:password@proxy:port
Also, there's “no_proxy”, the value of which is a comma-separated list of machines and domains with direct access, eg:
no_proxy=.local,.localdomain,proxy

Yves.
 
1 members found this post helpful.
Old 08-31-2010, 09:54 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,400

Rep: Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627
To add to that, you can also set up a .wgetrc with those values in it. Check the man page for wget, and it'll tell you these things.
 
Old 09-01-2010, 11:05 AM   #4
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by theYinYeti View Post
You should be able to use the “http_proxy”, “ftp_proxy”, and “https_proxy” environment variables, and wget will use them. Each variable is defined like this:
Code:
— xxx_proxy=http://proxy:port
or
— xxx_proxy=http://user:password@proxy:port
Also, there's “no_proxy”, the value of which is a comma-separated list of machines and domains with direct access, eg:
no_proxy=.local,.localdomain,proxy

Yves.
I did first as you wrote:
Code:
export http_proxy=http://a5xprq1:thomas2024@172.23.10.3:8080/
It looks better that before. But I got error as follow:
Code:
[root@s003ap23-test ~]# wget http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
--17:02:42--  http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.zip
           => `apache-tomcat-5.5.23.zip'
Connecting to 172.23.10.3:8080... connected.
Proxy request sent, awaiting response... 403 OK
17:03:14 ERROR 403: OK.
One can see the connection is OK. But ......
 
Old 09-01-2010, 04:38 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,400

Rep: Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627Reputation: 6627
Quote:
Originally Posted by thomas2004ch View Post
I did first as you wrote:
It looks better that before. But I got error as follow:
One can see the connection is OK. But ......
Ok. As I said in my previous post, read the man page. If you did, you'd have noticed variables like "--proxy-user" and "--proxy-passwd", that let you authenticate to the proxy server.

Telling it an address without credentials is pointless. Again, read the man page.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
407 Proxy Authentication Required goldeneagle1234 Linux - Newbie 3 10-20-2009 10:18 PM
HTTP/1.1 407 Proxy Authentication Required - Suse Linux Enterprise Desktop 10. ryzor Linux - Networking 10 10-17-2009 09:05 AM
Call failed: 407 Accuont authentication required" BurhanKhan Linux - Server 0 10-16-2008 01:19 AM
407 Proxy Authentication Required cucolin@ Linux - Networking 3 09-12-2006 09:54 AM
"407 Proxy Authentication Required." help super_teds Linux - Networking 1 11-18-2004 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:06 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