[Bug 1775876] [NEW] wget cannot handle local-link IPv6 address
psl
1775876 at bugs.launchpad.net
Fri Jun 8 15:35:57 UTC 2018
Public bug reported:
GNU Wget 1.17.1 built on linux-gnu. (Ubuntu 16.04 amd64)
IPv6 local link addresses (fe80::/10) are tricky. Network interface has
to be specified to tell OS what interface to use. wget cannot handle
that
First, IPv6 address, no interface specified, it fails with an error
(error comes from OS)
user at test:~$ wget http://[fe80::87f4:81fa:b481:d781]/test.html
--2018-06-08 17:29:08-- http://[fe80::87f4:81fa:b481:d781]/test.html
Connecting to [fe80::87f4:81fa:b481:d781]:80... failed: Invalid argument.
Second, IPv6 address with interface specified (%enp4s0 added to IPv6
address), wget cannot handle this address format (and this bug report is
about this case)
user at test:~$ wget http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html: Invalid IPv6 numeric address.
Compared with CURL, that can do it
First, IPv6 address without network interface, it fails with error from
OS
user at test:~$ curl http://[fe80::87f4:81fa:b481:d781]/test.html
curl: (7) Couldn't connect to server
Second, network interface is added and curl can handle it!
user at test:~$ curl http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
<html><body>TEST</body></html>
CURL and WGET were tested at the same PC...
** Affects: wget (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
GNU Wget 1.17.1 built on linux-gnu. (Ubuntu 16.04 amd64)
IPv6 local link addresses (fe80::/10) are tricky. Network interface has
to be specified to tell OS what interface to use. wget cannot handle
that
First, IPv6 address, no interface specified, it fails with an error
(error comes from OS)
user at test:~$ wget http://[fe80::87f4:81fa:b481:d781]/test.html
--2018-06-08 17:29:08-- http://[fe80::87f4:81fa:b481:d781]/test.html
Connecting to [fe80::87f4:81fa:b481:d781]:80... failed: Invalid argument.
Second, IPv6 address with interface specified (%enp4s0 added to IPv6
address), wget cannot handle this address format (and this bug report is
about this case)
user at test:~$ wget http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html: Invalid IPv6 numeric address.
Compared with CURL, that can do it
First, IPv6 address without network interface, it fails with error from
OS
user at test:~$ curl http://[fe80::87f4:81fa:b481:d781]/test.html
curl: (7) Couldn't connect to server
Second, network interface is added and curl can handle it!
user at test:~$ curl http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
<html><body>TEST</body></html>
+
+ CURL and WGET were tested at the same PC...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to wget in Ubuntu.
https://bugs.launchpad.net/bugs/1775876
Title:
wget cannot handle local-link IPv6 address
Status in wget package in Ubuntu:
New
Bug description:
GNU Wget 1.17.1 built on linux-gnu. (Ubuntu 16.04 amd64)
IPv6 local link addresses (fe80::/10) are tricky. Network interface
has to be specified to tell OS what interface to use. wget cannot
handle that
First, IPv6 address, no interface specified, it fails with an error
(error comes from OS)
user at test:~$ wget http://[fe80::87f4:81fa:b481:d781]/test.html
--2018-06-08 17:29:08-- http://[fe80::87f4:81fa:b481:d781]/test.html
Connecting to [fe80::87f4:81fa:b481:d781]:80... failed: Invalid argument.
Second, IPv6 address with interface specified (%enp4s0 added to IPv6
address), wget cannot handle this address format (and this bug report
is about this case)
user at test:~$ wget http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html: Invalid IPv6 numeric address.
Compared with CURL, that can do it
First, IPv6 address without network interface, it fails with error
from OS
user at test:~$ curl http://[fe80::87f4:81fa:b481:d781]/test.html
curl: (7) Couldn't connect to server
Second, network interface is added and curl can handle it!
user at test:~$ curl http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
<html><body>TEST</body></html>
CURL and WGET were tested at the same PC...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wget/+bug/1775876/+subscriptions
More information about the foundations-bugs
mailing list