httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.97k stars 3.68k forks source link

Punycode support #835

Open forivall opened 4 years ago

forivall commented 4 years ago

I wanted to use https://twitter.com/rfreebern/status/1214560971185778693 with httpie, alas,

» http 👻:6677

http: error: InvalidURL: Failed to parse: http://👻:6677

Should resolve to http://xn--9q8h:6677

Zygimantass commented 4 years ago

I'd like to take this one, seems like a relatively simple issue - encoding the URI with idna codec?