Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://馃А馃.ws #6423

Closed
Bubu opened this issue Jan 8, 2021 · 1 comment
Closed

https://馃А馃.ws #6423

Bubu opened this issue Jan 8, 2021 · 1 comment
Labels

Comments

@Bubu
Copy link
Contributor

Bubu commented Jan 8, 2021

(I've read #1441 and https://gitlab.com/libidn/libidn2/-/issues/25)

I think this should be supported but it seems that #1441 was never completely solved.

I did this

$ curl https://馃А馃.ws
curl: (3) Failed to convert 馃А馃.ws to ACE; string contains a disallowed character

I expected the following

It works in browsers and in wget. getting converted to the punycode https://xn--9s9hnf.ws/

curl/libcurl version

$ curl -V
curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1i zlib/1.2.11 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2020-12-09
Protocols: dict file ftp ftps gopher http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

operating system

$ uname -a
Linux bubutux 5.9.14-arch1-1 #1 SMP PREEMPT Sat, 12 Dec 2020 14:37:12 +0000 x86_64 GNU/Linux
@bagder bagder added the URL label Jan 8, 2021
@bagder
Copy link
Member

bagder commented Jan 8, 2021

See also https://daniel.haxx.se/blog/2015/02/24/curl-smiley-urls-and-libc/ - IDN names are part of the "URL mess" I often talk about...

bagder added a commit that referenced this issue Jan 10, 2021
This improves IDNA2003 compatiblity.

Reported-by: Bubu on github
Fixes #6423
@bagder bagder closed this as completed in 2299307 Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants