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

That's an interesting way to think about URLs. If both `url`.com` and `url2.com` resolve to the same IP then they are functionally the same. It's like comparing two strings whose variable names are different but that resolve to the same space in memory.

It also means that if one URL changes, then they could be equal sometimes and not others.



No, they aren't functionally the same for all protocols, because of things like SNI.


Or, even before that: because of things like HTTP 1.1 virtual hosting.


They are not functionally the same. Full stop.

It sends a different Host HTTP header; servers send different responses based on that header ~100% of the time.




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

Search: