wlandgraf
(Wagner Landgraf)
September 15, 2025, 11:30pm
2
WINHTTP_OPTION_IPV6_FAST_FALLBACK is just an alias for the value 140. You can use that value and set such option to WinHttp as described in either of these topics:
You can use the following code (FClient if object of class THttpClient):
uses
{…}, Sparkle.WinHttp.Engine, Sparkle.WinHttp.Api;
TWinHttpEngine(FClient.Engine).BeforeWinHttpSendRequest :=
procedure(Handle: HINTERNET)
begin
WinHttpCheck(WinHttpSetOption(Handle, WINHTTP_OPTION_PROXY_USERNAME, PWideChar(UserName), Length(UserName));
WinHttpCheck(WinHttpSetOption(Handle, WINHTTP_OPTION_PROXY_PASSWORD, PWideChar(Password), Length(Password));
end;
I found it. After setting Iservice
uses ....Sparkle.WinHttp.Engine, Sparkle.WinHttp.Api;
dwFlags:=WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2;
WinHttpCheck(WinHttpSetOption(TWinHttpEngine(Client.HttpClient.Engine).Session,
WINHTTP_OPTION_SECURE_PROTOCOLS, @dwFlags, SizeOf(dwFlags)));
This Stack Overflow answer gives more options:
Such as:
And: