Using Wget with Proxy Server.

[ad#co-3]

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

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

for example,

export http_proxy=http://192.168.0.1:3128/

similerly,

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.

[ad#co-2]

wget –proxy-user=USER –proxy-password=PASSWD http://shaxonline.org

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

Share

Leave a Reply