Using Wget with Proxy Server.


To Set a Proxy server for Wget, just type following commands.

export http_proxy=http://proxy-server-ip:port/

for example,

export http_proxy=


export ftp_proxy=http://proxy-server-ip:port/

If your proxy server requires authentication, use..

export http_proxy=http://username:password@proxy-server-ip:port/

And if you feel that it’s not secure to keep usernale password in environment variable, then use following cocmmand.


wget –proxy-user=USER –proxy-password=PASSWD

You can also set this variable for all Users, Just open /etc/profile and put above lines at the end of the file.


Leave a Reply