curl / trurl

trurl is a command line tool for URL parsing and manipulation.
https://curl.se/trurl/
Other
3.1k stars 99 forks source link

-s host=[::1] fails #279

Closed bagder closed 4 months ago

bagder commented 4 months ago

... because trurl always URL encodes the given string (unless := is used), and when setting an IPv6 address it gets URL encoded into "rubbish".

Maybe we should consider special-casing a leading bracket ([) when setting a host name and disable URL encoding then?

Maybe we should just accept that it works like this and maybe highlight it a little better in the docs?

piru commented 4 months ago

There are arguments both ways: