curl-users
Re: Can curl handle an IRI?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 Apr 2014 15:11:00 +0200 (CEST)
Date: Thu, 10 Apr 2014 15:11:00 +0200 (CEST)
On Thu, 10 Apr 2014, frank ernest wrote:
>> curl can handle IDN host names at least, if built with that suppport.
>
> So if curl is built with support for IDN names then yes, curl can support
> IRIs?
Not quite. IRIs are more than just IDN, as section 2.1 of RFC3987 says:
IRIs are defined similarly to URIs in [RFC3986], but the class of
unreserved characters is extended by adding the characters of the UCS
(Universal Character Set, [ISO10646]) beyond U+007F
In order to work, you need to convert the IRI to a URI and that involves
knowledge (mostly character encoding) that curl doesn't have. See section 3.1
in the RFC3987: https://tools.ietf.org/html/rfc3987#section-3.1
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-04-10