Wget is an elegant command line tool for downloading files over HTTP, HTTPs or FTP. Many of us are using it to just to get or reget files (reget means continue downloading of partially-downloaded file), save web pages with all contents (known as recursive download). Wget can also be used to download files via proxy. It takes address of the proxy from environment variable so in order to download something through proxy use the following syntax:

http_proxy="" wget http://www.somewebsite.com/somefile.iso


export http_proxy=
wget http://www.somewebsite.com/somefile.iso

Both commands will download file in the same way (through proxy) but the latter will save proxy for current session so you’ll be able to download other files without need to specify http_proxy environment variable again.

If you need to make this setup permanent even after logout or restart just add line export http_proxy= into ~/.bashrc file that stores your command line settings.




  1. March 20, 2012  7:57 pm by march test Reply

    Wow! Even though I know this stuff is out of my league. Its still very interesting.

  2. March 30, 2012  5:37 pm by fruit mocking party Reply

    Hey there! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading through your posts. Can you suggest any other blogs/websites/forums that deal with the same topics? Thanks a ton!

  3. April 10, 2012  4:03 am by Alex Reply

    Or you could just install proxychains and set the proxy address in /etc/proxychains.conf, and then run any application through a proxy ;)

  4. May 9, 2013  6:32 am by Puja And Homam Reply

    We're a group of volunteers and opening a new scheme in our community. Your website offered us with valuable information to work on. You've done a formidable job and
    our entire community will be grateful to you.

  5. May 27, 2013  7:25 pm by macbook air parts Reply

    Pretty section of content. I just stumbled upon your web
    site and in accession capital to assert that I acquire in fact enjoyed account your blog posts.
    Anyway I will be subscribing to your augment and even I
    achievement you access consistently fast.

Leave a reply


Your email address will not be published.