Every rule for a base URL, in order: a non-blank string, no whitespace or control
characters (baseUrlWhitespaceProblem), an absolute URL, the http: or
https: scheme, and no query or fragment — request paths are appended to the
base URL as a string, so a ? or # would swallow every path (http://h/?x=1
requests /?x=1/Einheit/..., http://h/#f requests /), no backslash (WHATWG reads it as
/ in an http(s) URL, so it ends the host: in https://u:pw@a.example\@b.example every
reader of the base URL has to agree where), a % in the user name or password that doesn't
start a valid escape (Node fails to decode it for the Authorization header at request time; a
literal one is %25), and http(s):// followed by the host: WHATWG skips any slashes after
http: and repairs http:host, http:/host and http:///host into http://host silently,
so the host requested would not be the one typed. Userinfo is allowed (error messages redact
it). The reasons never echo the URL.
Every rule for a base URL, in order: a non-blank string, no whitespace or control characters (baseUrlWhitespaceProblem), an absolute URL, the
http:orhttps:scheme, and no query or fragment — request paths are appended to the base URL as a string, so a?or#would swallow every path (http://h/?x=1requests/?x=1/Einheit/...,http://h/#frequests/), no backslash (WHATWG reads it as/in an http(s) URL, so it ends the host: inhttps://u:pw@a.example\@b.exampleevery reader of the base URL has to agree where), a%in the user name or password that doesn't start a valid escape (Node fails to decode it for the Authorization header at request time; a literal one is%25), andhttp(s)://followed by the host: WHATWG skips any slashes afterhttp:and repairshttp:host,http:/hostandhttp:///hostintohttp://hostsilently, so the host requested would not be the one typed. Userinfo is allowed (error messages redact it). The reasons never echo the URL.