cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IDN

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 26 Apr 2004 14:11:40 +0200

"Daniel Stenberg" <daniel-curl_at_haxx.se> said:

> We should also be careful to store the resolved address in the DNS cache with
> one of the names and make sure we document that and adjust the code
> accordingly. Possibly it could be sensible to cache on the "original" name and
> store the converted name in the cache as well to avoid having to convert the
> name in case it is already present in the cache.

I was thinking of a macro like:
#define TRUE_HOSTNAME(conn) \
  (conn->ace_hostname ? conn->ace_hostname : conn->hostname)

And use that in Curl_resolv and "Host" header etc. But always use
conn->hostname for display.

> configure now checks for libidn by default and you can pass on a specific path
> to check by using --with-libidn=[PATH].

I'm not sure it's a goodf idea to define USE_LIBIDN without
making sure we libiconv.a/iconv.h also. libidn seems to require
that. No surprise.

--gv
Received on 2004-04-26