Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks to virtual hosting (which is extremely common) host resolution is actively harmful to URL comparison.


> Thanks to virtual hosting (which is extremely common)

It's extremely common now, but it wasn't possible yet when they made this design decision.


I'm pretty sure the specification of this class predates name-based virtual hosting. After all, that only appeared in 1997, or perhaps late 1996, and it took a couple of years to be standardized. The URL class existed in Java in 1995 :)

(Edit: And really, virtual hosts are an extremely weird HTTP feature. What other internet protocol cares about what domain name you used to establish a connection?)


> (Edit: And really, virtual hosts are an extremely weird HTTP feature. What other internet protocol cares about what domain name you used to establish a connection?)

kerberos? (btw. this is older than 1995) or smtp (little bit different than the http version, tough)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: