wget2
wget2 copied to clipboard
Problem Occur When Download With Proxy Parameter
When using wget2 with proxy parameter(like http_proxy in linux), wget2 can't work, both on Windows(Win11) and Linux(Linux arch 5.16.11-zen1-1-zen #1 ZEN SMP PREEMPT Thu, 24 Feb 2022 02:18:22 +0000 x86_64 GNU/Linux). This is my debug message in linux.
$ export https_proxy=http://127.0.0.1:8889; export http_proxy=http://127.0.0.1:8889; export all_proxy=http://127.0.0.1:8889
$ wget2 https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz --debug
01.125120.484 name=debug value=https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz invert=0
01.125120.484 Local URI encoding = 'UTF-8'
01.125120.484 Input URI encoding = 'UTF-8'
01.125120.484 Fetched HSTS data from '/home/q/.local/share/wget/.wget-hsts'
01.125120.484 Fetched HPKP data from '/home/q/.local/share/wget/.wget-hpkp'
01.125120.484 Fetched OCSP hosts from '/home/q/.local/share/wget/.wget-ocsp_hosts'
01.125120.484 add OCSP cert 74ef335e5e18788307fb9d89cb704bec112abd23487dbff41c4ded5070f241d9 (maxage=1646113584,valid=1)
01.125120.484 add OCSP cert 352daf2ee8e7b944c0ef37c525cefadc26c4a9eaf49e275269e39b4e5e13d373 (maxage=1646113584,valid=1)
01.125120.484 Fetched OCSP fingerprints from '/home/q/.local/share/wget/.wget-ocsp'
01.125120.484 set_exit_status(0)
01.125120.484 *url =
01.125120.484 *3 https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz
01.125120.484 local filename = 'readline-8.2-alpha.tar.gz'
01.125120.484 host_add_job: job fname readline-8.2-alpha.tar.gz
01.125120.484 host_add_job: 0x56449068bcb0 https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz
01.125120.484 host_add_job: qsize 1 host-qsize=1
01.125120.484 queue_size: qsize=1
01.125120.484 queue_size: qsize=1
01.125120.484 queue_size: qsize=1
01.125120.484 [0] action=1 pending=0 host=0x0
01.125120.484 dequeue job https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz
01.125120.484 resolving 127.0.0.1:8889...
01.125120.484 has 127.0.0.1:8889
01.125120.484 trying 127.0.0.1:8889...
01.125120.484 GnuTLS init
01.125120.504 GnuTLS system certificate store is empty
01.125120.504 Certificates loaded: 150
01.125120.504 GnuTLS init done
01.125120.504 TLS False Start requested
01.125120.504 ALPN offering h2
01.125120.504 ALPN offering http/1.1
01.125120.505 gnutls_handshake: (-53) 在 push 函数中出错。 (errno=111)
01.125120.505 GnuTLS: Get ALPN: 请求的数据不可用。
----
Unsupported credential type 0.
----
Key Exchange: (null)
Protocol: TLS1.2
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
01.125120.505 closing connection
Failed to connect: Connect error
01.125120.505 host_final_failure: qsize=0
01.125120.505 set_exit_status(4)
01.125120.505 host_increase_failure: mirrors.aliyun.com failures=1
01.125120.505 [0] action=3 pending=1 host=0x56449068bad0
01.125120.505 released job https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz
01.125120.505 [0] action=1 pending=0 host=0x0
01.125120.505 host mirrors.aliyun.com is blocked (qsize=1)
01.125120.505 main: wake up
01.125120.505 main: done
01.125120.505 Successfully updated '/home/q/.local/share/wget/.wget-ocsp_hosts'.
01.125120.505 Saved OCSP hosts to '/home/q/.local/share/wget/.wget-ocsp_hosts'
01.125120.505 Successfully updated '/home/q/.local/share/wget/.wget-ocsp'.
01.125120.505 Saved OCSP fingerprints to '/home/q/.local/share/wget/.wget-ocsp'
01.125120.505 blacklist https://mirrors.aliyun.com/gnu/readline/readline-8.2-alpha.tar.gz
Looks like a duplicate of https://gitlab.com/gnuwget/wget2/-/issues/217
Can you please try and download from any http
URL? It should succeed correctly using the proxy.