I learned that getaddrinfo() converts IPv4 addresses given as octal to decimal. See "ping 0177.0.0.1" or even "curl 0177.0.0.1" ... (the latter usually gets a 400 due to the funny Host:)
Yeah, fun innit? I was also surprised by hex. https://noncombatant.org/2017/11/07/problems-of-urls/#URLsAreSurprisinglyComplex …
-
-
RFC 3986 actually said they should be treated as decimals in URIs, but WHATWG specifies no base...
-
Mostly because moving away from getaddrinfo() seemed unlikely to happen based on feedback and the mismatch is a security issue.
End of conversation
New conversation -
-
-
Related (with similar examples):https://twitter.com/jschauma/status/1027310214524096512?s=21 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.