[Bug 243299] fetch(1) fails to handle redirects on a valid URL

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 03 Aug 2022 13:22:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243299

Ronald Klop <ronald-lists@klop.ws> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronald-lists@klop.ws

--- Comment #1 from Ronald Klop <ronald-lists@klop.ws> ---
To clarify the issue:

$ fetch -v
"https://www.tddft.org/programs/libxc/down.php?file=4.3.4/libxc-4.3.4.tar.gz"
resolving server address: www.tddft.org:443
SSL options: 82004854
Peer verification enabled
Using CA cert file: /usr/local/etc/ssl/cert.pem
Verify hostname
TLSv1.2 connection established using ECDHE-RSA-AES256-GCM-SHA384
Certificate subject: /CN=tddft.org
Certificate issuer: /C=US/O=Let's Encrypt/CN=R3
requesting
https://www.tddft.org/programs/libxc/down.php?file=4.3.4/libxc-4.3.4.tar.gz
302 redirect to down/4.3.4/libxc-4.3.4.tar.gz
resolving server address: down:0
fetch:
https://www.tddft.org/programs/libxc/down.php?file=4.3.4/libxc-4.3.4.tar.gz: No
address record

Fetch tries "down" as the server name of the next hop.

-- 
You are receiving this mail because:
You are the assignee for the bug.