Skip to content

Instantly share code, notes, and snippets.

@mikeyny
Last active May 9, 2023 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyny/824fadf9a26245caa2f4cc329ed63afa to your computer and use it in GitHub Desktop.
Save mikeyny/824fadf9a26245caa2f4cc329ed63afa to your computer and use it in GitHub Desktop.
Wget Proxy Configuration
# Configuring Proxy Settings using Environment Variables
## Unauthenticated
export http_proxy=http://proxy_address:proxy_port
export https_proxy=https://proxy_address:proxy_port
## Authenticated
export http_proxy=http://username:password@proxy_address:proxy_port
export https_proxy=username:password@proxy_address:proxy_port
export ftp_proxy=username:password@proxy_address:proxy_port
# Using /etc/wgetrc (all users) or ~/.wgetrc (current user)
## Unauthenticated
https_proxy = http://proxy.example.com:8080
http_proxy = http://proxy.example.com:8080
ftp_proxy = http://proxy.example.com:8080
## Authenticated
https_proxy = http://username:password@proxy.example.com:8080
http_proxy = http://username:password@proxy.example.com:8080
ftp_proxy = http://username:password@proxy.example.com:8080
# Current Terminal Instance
# http proxy
wget -e use_proxy=yes -e http_proxy=http://proxy_address:proxy_port URL
# https proxy
wget -e use_proxy=yes -e https_proxy=http://proxy_address:proxy_port URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment