Connection fails with HTTP/1.0 proxies
- OS: Fedora 40
- wget2 version: 2.1.0 (Fedora wget2.x86_64 2.1.0-9.fc40)
Connecting over a proxy fails with the following error.
Proxy connection failed with: HTTP/1.0 200 Connection Established
Connection: close
Our corporate proxy replies to wget2 proxy message HTTP/1.1 CONNECT
with HTTP/1.0 200
. Testing with Curl and wget they treat this response as valid and continue. Wget2 rejects any message except HTTP/1.1 200
[1]. Issue may be fixable by allowing HTTP/1.0
as a response, though I don't know what the implications are.
[1] https://gitlab.com/gnuwget/wget2/-/blob/master/libwget/http.c#L480
Full debug output
$ wget2 --debug https://www.google.com
24.172623.374 name=debug value=https://www.google.com invert=0
24.172623.374 name=debug value=https://www.google.com invert=0
24.172623.374 Local URI encoding = 'UTF-8'
24.172623.374 Input URI encoding = 'UTF-8'
24.172623.375 Fetched HSTS data from '/home/blmaier/.local/share/wget/.wget-hsts'
24.172623.375 Fetched HPKP data from '/home/blmaier/.local/share/wget/.wget-hpkp'
24.172623.376 Fetched OCSP hosts from '/home/blmaier/.local/share/wget/.wget-ocsp_hosts'
24.172623.376 Fetched OCSP fingerprints from '/home/blmaier/.local/share/wget/.wget-ocsp'
24.172623.377 set_exit_status(0)
24.172623.377 *url =
24.172623.377 *3 https://www.google.com
24.172623.377 local filename = 'index.html'
24.172623.377 host_add_job: job fname index.html
24.172623.377 host_add_job: 0x56523b3f0100 https://www.google.com
24.172623.377 host_add_job: qsize 1 host-qsize=1
24.172623.377 queue_size: qsize=1
INFO logger being disabled as --progress=bar enabled
24.172623.377 queue_size: qsize=1
24.172623.377 queue_size: qsize=1
24.172623.377 queue_size: [Files: 0 Bytes: 0 [0 B/s] Redirects: 0 Todo: 1 Errors: 0 ]
24.172623.377 [0] action=1 pending=0 host=0x0
24.172623.377 dequeue job https://www.google.com
24.172623.377 resolving kirk:3310...
24.172623.379 has 10.148.204.208:3310
24.172623.379 has 10.148.204.208:3310
24.172623.379 has 10.148.204.208:3310
Proxy connection failed with: HTTP/1.0 200 Connection Established
Connection: close
24.172623.459 closing connection
24.172623.459 host_final_failure: qsize=0
24.172623.459 set_exit_status(4)
24.172623.459 host_increase_failure: www.google.com failures=1
24.172623.459 [0] action=3 pending=1 host=0x56523b3efc50
24.172623.459 released job https://www.google.com
24.172623.459 [0] action=1 pending=0 host=0x0
24.172623.459 host www.google.com is blocked (qsize=1)
24.172623.459 main: wake up
24.172623.459 main: done
24.172623.459 queue_size: [Files: 0 Bytes: 0 [0 B/s] Redirects: 0 Todo: 0 Errors: 0 ]
24.172623.462 Successfully updated '/home/blmaier/.local/share/wget/.wget-ocsp_hosts'.
24.172623.462 Saved OCSP hosts to '/home/blmaier/.local/share/wget/.wget-ocsp_hosts'
24.172623.465 Successfully updated '/home/blmaier/.local/share/wget/.wget-ocsp'.
24.172623.465 Saved OCSP fingerprints to '/home/blmaier/.local/share/wget/.wget-ocsp'
24.172623.465 blacklist https://www.google.com