3 ms·
> I imagine most browsers etc. would consider a URL with an empty hostname invalid – Chrome considers both http:// http:// and http:// http://. invalid, at leas
by layer8 4y ago
> I imagine most browsers etc. would consider a URL with an empty hostname invalid – Chrome considers both http:// http:// and http:// http://. invalid, at least.
An empty hostname is invalid according to RFC 7230:
A sender MUST NOT generate an "http" URI with an empty host identifier. A recipient that processes such a URI reference MUST reject it as invalid.
This requirement also carries over to HTTPS.