Package: wget2
Version: 2.2.0+ds-1
Severity: normal
File: /usr/bin/wget2

"man wget2" mentions an option --http-proxy, but it does not work for me.
Using an environment variable still works.
In the demonstration code below, I'm using "apt install apt-cacher-ng" to 
provide an HTTP proxy.

    bash5$ tail -Fn0 /var/log/apt-cacher-ng/apt-cacher.log &  # if wget2 uses 
the proxy, this will log some x|y|z lines

    bash5$ wget2 --progress=none --http-proxy=http://localhost:3142 
http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz
    [0] Downloading 
'http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz'
 ...
    Saving 'boot.img.gz'
    HTTP response 200 OK 
[http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz]

    bash5$ http_proxy=http://localhost:3142 wget2 --progress=none 
http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz
    [0] Downloading 
'http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz'
 ...
    Saving 'boot.img.gz.1'
    HTTP response 200 OK 
[http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz]
    
1756802999|I|977|::1|debrep/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz
    
1756802999|O|107546248|::1|debrep/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz


-- System Information:
Debian Release: 13.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.43+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wget2 depends on:
ii  libc6          2.41-12
ii  libgpgme11t64  1.24.2-3
ii  libpcre2-8-0   10.46-1~deb13u1
ii  libubsan1      14.2.0-19
ii  libwget3       2.2.0+ds-1

Versions of packages wget2 recommends:
ii  ca-certificates  20250419

wget2 suggests no packages.

-- no debconf information

Reply via email to