ParseHttpURL
function ParseHttpURL(const aURL: string; out aHost: string; out aPort: Word; out aPath: string; out aHttps: Boolean): Boolean;
ParseHttpURL splits an http(s) URL into host, port, absolute path (including any query) and a scheme flag. Returns False for an unsupported scheme or a URL with no host.