New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urlglob does not allow dashes in IPv6 zone ID #5576
Comments
On Wed, Jun 17, 2020 at 10:23:14AM -0700, puckipedia wrote:
marisa ~> curl -v 'http://[fe80::1%foo-bar]/`
curl: (3) bad range in URL position 9:
http://[fe80::1%foo-bar]/
This isn't a valid URL. The percent must be escaped, i.e.
http://[fe80::1%25foo-bar]/
|
And either way, RFC6874 Section 3 suggests parsers be liberal in accepting non-percent-escaped zone IDs in IPv6 literals. |
You need the -g option to use IPv6 literal addresses. This is documented
somewhere.
|
The only reference to globbing and IPv6 I could find is https://ec.haxx.se/cmdline/cmdline-globbing, which says:
now, I can see why this is occuring, but Line 368 in 8bc25c5
If IPv6 literal addresses in URLs shouldn't be supported without |
Look like the Lines 322 to 350 in 8bc25c5
|
... not a "glob". Now done by passing the supposed host to the URL parser which supposedly will do a better job at identifying "real" numerical IPv6 addresses. Reported-by: puckipedia on github Fixes #5576
@puckipedia do you have the ability to try out my patch for this? |
Looks like it works for me, thank you very much!
|
It seems that urlglob's IPv6 parsing is less lenient than the actual URL parsing is, it doesn't allow for dashes..
I did this
I expected the following
curl/libcurl version
operating system
Linux marisa 5.6.15 #1-NixOS SMP Wed May 27 15:48:31 UTC 2020 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: