PASE - wget with proxy server

By kimot, 27 December, 2022

If you have to use wget command with proxy server to download content from servers outside your organization.
You have these options.

1. configure /etc/wgetrc file ... this will affect all users on LPAR (replace addresses with your proxy server address) 

use_proxy=yes
http_proxy=127.0.0.1:8080
https_proxy=127.0.0.1:8080
 

2. create/configure file ~/.wgetrc in concrete user's home directory

use_proxy=yes
http_proxy=127.0.0.1:8080
https_proxy=127.0.0.1:8080

3. run wget command with this option

wget ... -e use_proxy=yes -e http_proxy=127.0.0.1:8080