Hello Eugeny, > When trying to access link http:///, HttoClient tries to access local host > instead of trowing some kind of exception for empty host name. > > Is it bug or a feature?
RFC 3986 says it's a bug. Page 20: If the URI scheme defines a default for host, then that default applies when the host subcomponent is undefined or when the registered name is empty (zero length). For example, the "file" URI scheme is defined so that no authority, an empty host, and "localhost" all mean the end-user's machine, whereas the "http" scheme considers a missing authority or empty host invalid. Next thing would be to figure out whether the bug is in our URL class or elsewhere. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
