curl-library
Re: IDN
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 26 Apr 2004 17:02:29 +0200 (CEST)
Date: Mon, 26 Apr 2004 17:02:29 +0200 (CEST)
On Mon, 26 Apr 2004, Gisle Vanem wrote:
> rc = Curl_resolv(conn, TRUE_HOSTNAME(conn), conn->port, &hostaddr); in
> url.c. Seem your getaddrinfo() gets 'conn->hostname' passed.
Oh right... but wait, it _is_ called like that, the problem is that
ace_hostname isn't setup until after the name resolve in done, in
SetupConnection(). I think we should init ace_hostname in the
CreateConnection() immediately before Curl_resolv() is called.
Also, when I got your mail here and started looking around I found a little
flaw in this approach: this doesn't handle the proxy given with IDN! The macro
only deals with 'hostname' and when we connect to a proxy we connect to
conn->proxyhost and not conn->hostname...
-- 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