Setting proxy for console(terminal) applications
Mar 9, 2009 by mohamed hanoosh
Command line tools like wget,apt-get requires the variable http_proxy to be initialized , to access the internet if proxy only is available. The format is as follows
http_proxy=http://user:password@proxyhost:portnumber.
For example
http_proxy=http://user:password@proxyhost:portnumber.
For example
$ http_proxy=http://hash:mypassword@192.168.40.1:3128
Then execute the applications needed.