Simon Willison’s Weblog

Subscribe

Two hosts are considered equivalent if both host names can be resolved into the same IP addresses [...] Note: The defined behavior for equals is known to be inconsistent with virtual hosting in HTTP.

java.net.URL documentation