Proxy in wget: commands

wget has no option for the proxy address, but you can set it with -e or an environment variable. Ready commands below.

HTTPHTTPSLogin and passwordRotation and sticky
wget · proxy
http://HOST:PORT
LOGIN
••••••
yes
✓ IP: Germany, residentialRun

Why use a proxy in wget

GNU Wget is a command line tool for downloading over HTTP, HTTPS and FTP. It takes the proxy address from the http_proxy and https_proxy variables or from .wgetrc. Login and password are set with --proxy-user and --proxy-password or in the proxy URL.

What to pick

Take an HTTP proxy: GNU Wget 1.x has no SOCKS. For large downloads a sticky session is better so the IP doesn't change mid-download. To check rotation, run the command several times.

Residential

from $0.6 / GB

Home ISP addresses. The main choice for accounts and protected sites.

VIP

$2 / GB

Hand-picked clean IPs, faster and more stable than regular residential.

Mobile

$4 / GB

Carrier IPs, for platforms that check addresses strictly.

Step-by-step setup

Button names are given exactly as they appear in wget.

  1. Check wget

    Run wget --version. Linux usually has it; on macOS install it via Homebrew.

  2. Export the proxy

    Take an HTTP proxy in @SousProxyBot or the dashboard: host, port, login and password.

  3. Set the proxy address

    https sites need https_proxy, http sites http_proxy. The value is an HTTP proxy address like http://HOST:PORT.

  4. Pass the login

    Use --proxy-user=LOGIN and --proxy-password=PASSWORD. Or put the login and password in the proxy URL instead.

  5. Check the IP

    -qO- prints the response to the console. It should show the proxy IP.

Code example

Put in your own HOST, PORT, LOGIN and PASSWORD from the bot or the dashboard.

bash
# HTTPS site through an HTTP proxy
wget -qO- -e use_proxy=yes -e https_proxy=http://HOST:PORT \
  --proxy-user=LOGIN --proxy-password=PASSWORD \
  "https://api.ipify.org?format=json"

# Same thing via an environment variable
https_proxy="http://LOGIN:PASSWORD@HOST:PORT" wget -qO- "https://api.ipify.org?format=json"

Tested by running it

We ran this example ourselves: GNU Wget 1.21.4. Real output below, IP hidden.

Terminal ·
$ wget -qO- -e use_proxy=yes -e https_proxy=http://HOST:PORT \
  --proxy-user=LOGIN --proxy-password=PASSWORD \
  "https://api.ipify.org?format=json"
{"ip":"proxy IP"}

And this is the response when the password is wrong:

$ wget -O- -e use_proxy=yes -e https_proxy=http://HOST:PORT \
  --proxy-user=LOGIN --proxy-password=wrong-pass \
  "https://api.ipify.org?format=json"
--2026-11-22 16:01:48--  https://api.ipify.org/?format=json
Resolving HOST (HOST)... HOST_IP
Connecting to HOST (HOST)|HOST_IP|:PORT... connected.
Proxy tunneling failed: Proxy Authentication RequiredUnable to establish SSL connection.

Common errors

The issues people most often bring to support.

!

Proxy request sent, awaiting response... 407The login or password didn't get through. Check --proxy-user and --proxy-password and quote a password with special characters.

!

Request to an https site bypasses the proxyOnly http_proxy is set. https addresses need the https_proxy variable.

!

The proxy is ignoredno_proxy may have kicked in, or .wgetrc has use_proxy = off. Add -e use_proxy=yes.

!

You need SOCKS5GNU Wget doesn't support it. Take an HTTP proxy or use curl with socks5h://.

Need a proxy for wget?

Residential, VIP and mobile IPs. HTTP and SOCKS5, pay per GB, 1 GB free to try.

FAQ

Can I configure the proxy once?

Yes, in ~/.wgetrc: https_proxy = http://HOST:PORT, proxy_user = LOGIN and proxy_password = PASSWORD. Keep in mind the password is stored in plain text there.

How do I resume a download after a break?

Add -c. With a sticky session the resume goes from the same IP.

How do I test the proxy separately from wget?

Run the line through /en/tools/proxy-checker/.