{ V8.62 if proxy URL is passed, parse it as proxy properties }
{ http://[user[:password]@]host:port }
if (Length(FProxyURL) > 6) and (Pos (':', Copy(FProxyURL, 6, 9999)) > 5) then begin
ParseURL(FProxyURL, Proto, User, Pass, Host, Port, Path);
{ pending, check https for SSL prpoxy, maybe socks for socks proxy }
if Proto = 'http' then begin
FProxy := Host;
FProxyPort := Port;
FProxyUsername := User;
FProxyPassword := Pass;
if (FProxyUsername <> '') and (FProxyPassword <> '') then
FProxyAuth := httpAuthBasic;
end;
end;
Wouldn't it be wiser to do FProxyAuth := httpAuthBasic; only if FProxyAuth = httpAuthNone ?
Otherwise, if user has selected httpAuthNtlm (or other) then settings is lost and non-overridable
Likely minor issue (and this may help me to solve my other issue by forcing basicAuth)