A base URL: an absolute http:/https: URL with a host and no query string or
fragment (the client appends its own path and query), without surrounding
whitespace or inner whitespace/control characters (the URL parser would drop or
encode them silently), without a backslash (WHATWG ends an http(s) host at one, as at a
/, while text-based code reads on: https://u:pw@a.example\@b.example was a.example
to every check and its credentials could look like b.example's), and with the scheme
followed by exactly // and the host (WHATWG repairs http:host, http:/host and
http:///host silently, so the host requested would not be the one typed). Userinfo is allowed: it is sent as Basic auth, for a mirror
behind a login, and redacted in messages; a % in it must be an escape (%25 for
a literal one), since it is percent-decoded for the header. The reasons never
repeat the value.
A base URL: an absolute
http:/https:URL with a host and no query string or fragment (the client appends its own path and query), without surrounding whitespace or inner whitespace/control characters (the URL parser would drop or encode them silently), without a backslash (WHATWG ends an http(s) host at one, as at a/, while text-based code reads on:https://u:pw@a.example\@b.examplewas a.example to every check and its credentials could look like b.example's), and with the scheme followed by exactly//and the host (WHATWG repairshttp:host,http:/hostandhttp:///hostsilently, so the host requested would not be the one typed). Userinfo is allowed: it is sent as Basic auth, for a mirror behind a login, and redacted in messages; a%in it must be an escape (%25for a literal one), since it is percent-decoded for the header. The reasons never repeat the value.