Let's just look at the host part, since subdomain can have unlimited levels, and there can be different level of domains, for example:
foo.foo2.host.bar.bar2
This is a completely valid host, but while the below are also valid:
foo.foo2.foo3.host.bar.bar2
foo.foo2.host.bar.bar2.bar3
Basically, we can't really use the 'dot' to tell the difference between subdomains and domains
So without a network to actually lookup the domain info from the web, is it impossible to properly parse an uri?
How does web browser handle this situation?
Aucun commentaire:
Enregistrer un commentaire