Introducing idnx · HTTPX

Let me spare you the work: here’s the ruby toolbox link. Yes, there have been many IDN-related gems over the years. Why yet another one?While researching on how to better support IDN domain names for httpx, I asked myself, “what does cURL do?”. After a session of “look at the source”, I found out that cURL uses libidn2 in Unix environments, while it uses the winAPI IdnToAscii on Windows.After that, I searched for a ruby library that would support at least one of the above. To my surprise, I didn’t find any. In fact, I found out that most of the idn-related gems from that ruby toolbox list haven’t received much attention for years, and most of them use libidn, the predecessor of libidn2, which does not support IDNA 2008 Punycode protocol. Also, none of them supports Windows.
Introducing idnx · HTTPX #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/introducing-idnx-httpx

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles