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@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@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@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@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@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@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@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@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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1775876 Title: wget cannot handle local-link IPv6 address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wget/+bug/1775876/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs