Closed brujoand closed 9 years ago
Hi,
Thanks for raising this. I had a look into rfc3986, which I have been trying to follow. rfc3986 does allow commas in the host:
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
reg-name = *( unreserved / pct-encoded / sub-delims )
host = IP-literal / IPv4address / reg-name
This does conflict with rfc1123 you quoted, however unless it is causing anyone any problems, I think I would rather be permissive here incase anyone needs it.
Hehe, the inconsistencies of the URI specs never cease to amaze me.. But I guess it's not unreasonable to allow commas in hostnames then.
Closing this as 3986 supersedes 1123
java.net.URI allows this, but I guess that isn't really a guiding light.
http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names