I want to download something with wget using a proxy:
HTTP Proxy: 127.0.0.1
Port: 8080
The proxy does not need username and pa
export http_proxy=http://proxy_host:proxy_port/
export https_proxy=https://proxy_host:proxy_port/
or
export http_proxy=http://username:password@proxy_host:proxy_port/
export https_proxy=https://username:password@proxy_host:proxy_port/
As all others explained here, these environment variable helps to pass on proxies.
Note: But please not that if the password contains any special character then that needs to be configured as %.
Example: If the password is pass#123, need to be used as pass%23123 in above export commands.