- From: Nicolas DUBIEN <notifications@github.com>
- Date: Fri, 05 Apr 2019 07:41:29 +0000 (UTC)
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 5 April 2019 07:41:53 UTC
I recently opened an issue in https://github.com/nodejs/node/issues/27093 concerning the fact that http://40000000000 was considered as being an invalid url while RFC-1123 clearly states the opposite. And got redirected here :) According to RFC-1123, which defined what is an URL, the URL is valid. Indeed, RFC-1123 states: > The syntax of a legal Internet host name was specified in RFC-952 [DNS:4]. One aspect of host name syntax is hereby changed: the restriction on the first character is relaxed to allow either a letter or a digit. More http://www.faqs.org/rfcs/rfc1123.html With RFC-952 stating: > `<domainname> ::= <hname>` > `<hname> ::= <name>*["."<name>]` > `<name> ::= <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]` More http://www.faqs.org/rfcs/rfc952.html On their side both `curl` and `ping` (at least in Windows) consider the domain `40000000000` as being a valid domain. To my understanding of node's code and of the spec, the issue, if confirmed, comes from the fact that this domain is considered as an invalid IPv4. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/436
Received on Friday, 5 April 2019 07:41:53 UTC