SSLVersion (http)
property SSLVersion:string;
Lecture/Ecriture
Cette propriété indique la version SSL a utiliser. (la valeur par défaut est TLS 1.2) Les valeurs possibles sont sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2. Modifier cette valeur peut être utile si le client s'adresse à un serveur qui ne supporte pas TLS 1.2
Exemple:
var
http : THttpClient;
begin
http := ThttpClient.Create(nil);
http.URL := 'https://client.badssl.com/';
http.SSLVersion := 'sslvTLSv1';
http.SSL := true;
http.Method := hrmGet;
try
http.Execute;
showmessage(http.RequestInfos);
showmessage(http.ResponseStr);
showmessage(http.responseInfos);
except
showmessage(http.ErrorText);
showmessage(e.message);
end;
end;
Voir aussi: