Tuesday, June 14, 2011

wget on linux with a proxy

I had to use wget with a proxy to download unrar from behind my companies firewall.

This is what I had to do.

First, I setup my proxy (note that SOCKS proxy isn't usable)

I added this to my .bash_profile and sourced it:

export http_proxy=http://bastion2.us.dnb.com:8080

Then I executed this command:

wget http://www.rarlab.com/rar/rarlinux-4.0.1.tar.gz

I went to the rarlab website and moused over the unrar for linux download link to see the proper URL to use.

No comments: