If you’re working on a environment under proxy and you need to download something directly into your server, just alter the values of http_{proxy, user, passwd} and be happy.
cat <<EOF>> ~/wgetrc http_proxy = http://proxy.example.com:8080/ proxy_user = username proxy_passwd = password use_proxy = on EOF