jira-importer opened a new issue, #1488: URL: https://github.com/apache/httpcomponents-core/issues/1488
**[Julien Bernard](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER280143)** opened **[HTTPCORE-743](https://issues.apache.org/jira/browse/HTTPCORE-743?redirect=false)** and commented 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: ```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() ``` --- **Affects:** 5.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
