You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2023/04/26 07:25:00 UTC

[jira] [Resolved] (HTTPCORE-743) Add support for IDNA 2008 (RFC 5891)

     [ https://issues.apache.org/jira/browse/HTTPCORE-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-743.
----------------------------------------
    Fix Version/s: 5.3-alpha1
       Resolution: Fixed

> Add support for IDNA 2008 (RFC 5891)
> ------------------------------------
>
>                 Key: HTTPCORE-743
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-743
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>    Affects Versions: 5.0
>         Environment: Android SDK 30
>            Reporter: Julien Bernard
>            Priority: Minor
>              Labels: stuck, volunteers-wanted
>             Fix For: 5.3-alpha1
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> The tests have been conducted with Kotlin on Android SDK 30 with Apache HttpClient Android extensions which ships with HttpClient version 5.0.1 but any HttpClient component on any platform may be impacted.
> Before making an HTTP query the client should convert the URL domain to A-label as described in [RFC 5891|https://datatracker.ietf.org/doc/html/rfc5891].
> Here is an example with the trustworthy ICU4J library:
>  
> {code:java}
> int flags = IDNA.CHECK_BIDI
>        | IDNA.CHECK_CONTEXTJ
>        | IDNA.CHECK_CONTEXTO
>        |  IDNA.NONTRANSITIONAL_TO_ASCII
>        | IDNA.USE_STD3_RULES;
> IDNA idna = IDNA.getUTS46Instance(flags);
> IDNA.Info info = new IDNA.Info();
> String domainAscii = idna.nameToASCII(domain, new StringBuilder(), info);
> // check error with info.hasErrors() {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org