Wednesday, June 21, 2006

Working on command line tools with proxy settings

In situations where you have a proxy and you need to use command line tools like wget going through the proxy , add the following commands

export http_proxy="http://192.168.1.10:3128"
export ftp_proxy="http://192.168.1.10:3128"

If you need authentication on it in wget,add

wget --proxy-user "Domain\username" --proxy-passwd "pass123" http://mirror.kernel.org/linux.iso

Altenatively, you may encode the username/password in the http_proxy variable:

export http_proxy="http://username:password@192.168.1.10:3128"
export ftp_proxy="http://username:password@192.168.1.10:3128"

No comments: