11-23-2022, 01:01 PM
I'm using idHttp and TIdSSLIOHandlerSocketOpenSSL, it works on the local machine, but on the server when running, the error "unknown protocol" occurs.
Indy version I use is 10.6.2.0
Code
lHTTP := TIdHTTP.Create(nil);
try
lHTTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
TIdSSLIOHandlerSocketOpenSSL(lHTTP.IOHandler).SSLOptions.SSLVersions := [sslvTLSv1,sslvTLSv1_2,sslvTLSv1_1];
lHTTP.ProtocolVersion := pv1_0;
Result := lHTTP.Get(aUrl);
finally
lHTTP.Free;
end
Indy version I use is 10.6.2.0
Code
lHTTP := TIdHTTP.Create(nil);
try
lHTTP.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
TIdSSLIOHandlerSocketOpenSSL(lHTTP.IOHandler).SSLOptions.SSLVersions := [sslvTLSv1,sslvTLSv1_2,sslvTLSv1_1];
lHTTP.ProtocolVersion := pv1_0;
Result := lHTTP.Get(aUrl);
finally
lHTTP.Free;
end