3 ms·
Minor nitpick: URLs do tend to be used with the larger scope first (i.e. /resource/child/subchild). Domain names are the odd exception.
by tsimionescu 8y ago
Minor nitpick: URLs do tend to be used with the larger scope first (i.e. /resource/child/subchild). Domain names are the odd exception.
- thaumasiotes 8y agoHTTP paths are not conceptually hierarchical at all; they're opaque strings. People set them up that way in practice because they prefer thinking that way. Or, I guess, because they want to sort their URLs meaningfully. Does that happen?
- mirimir 8y agoThat's a fair point. But the fact is that people do tend to set them up as hierarchies. But maybe you're right that most people don't understand that, given how adversaries exploit stuff like "games.apple.com.foobar.hosting.tw". You wouldn't fall for that if you understood the system.
- boomlinde 8y agoWhile they're not conceptually hierarchical, it's not fair to say that they are opaque strings either. "////" is not a valid HTTP 1.1 path, for example, and "" means "/"