delphi – TIdHTTPProxyServer throwing an exception RSHTTPUnknownProtocol "Unknown Protocol"

I am currently recoding an old Delphi XE program using Delphi 10.3 Rio. It uses the TIdHTTPProxyServer Indy component listening on 127.0.0.1:80.

        with IdHTTPProxyServer.Bindings.Add start

IP: = 127.0.0.1;
Port: = 80;

end;

IdHTTPProxyServer.Active: = True;

For the test, I added 127.0.0.1 localtest123.com and 127.0.0.1 www.localtest123.com to the hosts file and disabled the DNS cache service. Then, in several sources, I asked http://localtest123.com/ and http://www.localtest123.com/. With OutputDebugString (), I can see the accepted connections, but then generate a "Unknown Protocol" error.

I debugged the exception in the TIdHTTPProxyServer.CommandPassThrough procedure in IdHTTPProxyServer.pas. It appears that LURI.Protocol is an empty string, which is why RSHTTPUnknownProtocol is fired.

        LContext: = TIdHTTPProxyServerContext (ASender.Context);
LContext.FCommand: = ASender.CommandHandler.Command; // <- & # 39; GET & # 39;
LContext.FTarget: = ASender.Params.Strings[0]; // <- & # 39; / & # 39;

LContext.FOutboundClient: = TIdTCPClient.Create (nil);
try
LURI: = TIdURI.Create (LContext.Target); // <- & # 39; / & # 39;
try
TIdTCPClient (LContext.FOutboundClient) .Host: = LURI.Host; // <- & # 39;

if LURI.Port <> & # 39; & # 39; then begin // <- - & # 39;
TIdTCPClient (LContext.FOutboundClient) .Port: = IndyStrToInt (LURI.Port, 80);
end
otherwise if TextIsSame (LURI.Protocol, & # 39; http & # 39;) starts then // <- & # 39; {do not locate}
TIdTCPClient (LContext.FOutboundClient) .Port: = IdPORT_HTTP;
end
otherwise if TextIsSame (LURI.Protocol, & # 39; https & # 39;) starts then // <- & # 39; {do not locate}
TIdTCPClient (LContext.FOutboundClient) .Port: = IdPORT_https;
end of the other begins
triggers EIdException.Create (RSHTTPUnknownProtocol);
end;

It's probably missing something, but TIdHTTPProxyServer just works without too much code, so I have to ask for help for this exception. Thanks in advance!

Is all of a Blockchain network based on its underlying "consensus protocol"?

I've been reading and researching Blockchain technology for a while, and what I can understand from the very primitive architecture of these "distributed databases" is that all and all procedures are solely based on the "consensus protocol" declared to achieve security. and anonymity.

And the reason why Blockchain technology currently has no major application outside financial systems is partly or mainly due to the inability of the most used "consensus protocols".

I ask if my argument is correct or not? and if it is not the case, where am I wrong?