curl-library
Re: IDN
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 26 Apr 2004 16:07:41 +0200 (CEST)
Date: Mon, 26 Apr 2004 16:07:41 +0200 (CEST)
On Mon, 26 Apr 2004, Gisle Vanem wrote:
> More importantly, it now works (for http at least). curl www.tromsø.no |
> lynx -stdin
>
> Tromsø kommune
>
> [0.gif]
> [px.gif] Tjenestetilbud
> ...
Cool!
But I believe this works for you only because your DNS is very liberal. Try
mine:
$ curl www.tromsø.no -v
* getaddrinfo(3) failed for www.tromsø.no:80
* Couldn't resolve host 'www.tromsø.no'
* Closing connection #0
... (Curl_resolv() gets this 8bit name passed in and this will be used to the
resolver which indeed doesn't grok this, I also tried with 'www.hörby.se' but
with similar result.)
Your patch didn't define TRUE_HOSTNAME, so I added that define in urldata.h
where ace_hostname is declared.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-04-26