LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   change proxy address for wget (http://www.linuxquestions.org/questions/linux-server-73/change-proxy-address-for-wget-827843/)

raghureddii 08-22-2010 02:18 PM

change proxy address for wget
 
hi


intially we have proxy is 10.x.x.x

proxy has been changed to 172.x.x.x

according to that new proxy address has been changed to all the locations.

1) yum is working fine
2) internet is working fine(browser)

Problem: wget is giving the problem.

when i am trying to make a connection establishment to download using WGET , it is trying to make a connectionusing 10.x.x.x(actallay is has to make connection astablishment to 172.x.x.x).

where to change proxy address for WGET(where it will defaulty stores the proxy address)

2010-08-23 00:37:55-- http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

(observe here actually 172.x.x.x should be here instead of 10.1.1.51)
Connecting to 10.1.1.51:3128... connected.
Proxy request sent, awaiting response...

r0b0 08-22-2010 03:00 PM

Wget uses environment variable called http_proxy (and ftp_proxy). You need to set it correctly.

raghureddii 08-23-2010 01:00 AM

proxy isssue
 
Quote:

Originally Posted by r0b0 (Post 4074374)
Wget uses environment variable called http_proxy (and ftp_proxy). You need to set it correctly.


in commad line i tried.


httP-proxy=http://proxyaddress:port@username:password/
export http
ftp_proxy=ftp://proxyaddress:port@username:password/
export ftp

i tried it no use


All times are GMT -5. The time now is 10:43 AM.