01-03-2018, Saat: 03:29
(Son Düzenleme: 01-03-2018, Saat: 07:42, Düzenleyen: TescilsizUzman.)
procedure TForm1.Button1Click(Sender: TObject); var idhttp1: Tidhttp; opssl1: TIdSSLIOHandlerSocketOpenSSL; i:integer; begin idhttp1 := TIdHTTP.Create(nil); opssl1:=TIdSSLIOHandlerSocketOpenSSL.create(nil); idhttp1.iohandler:=opssl1; memo1.Text:=idhttp1.Get('https://poloniex.com/public?command=returnTicker'); idhttp1.free; opssl1.free; end;
Yukarıdaki kod, xe7 ile derleyip çalıştırınca sorunsuz, ancak delphi 10.2 ile derleyip çalıştırınca aşağıdaki hatayı veriyor. libeay32.dll ve ssleay32.dll dosyalarının farklı versiyonlarını da denedim ama hep aşağıdaki hatayı verdi
"error connecting with ssl. error:1409442E:SSL routines: ssl3_read_bytes:tlsv1 alert protocol version."
Forma idhttp ve IdSSLIOHandlerSocketOpenSSL ekleyip, method seçeneklerinin tümünü tek tek denedim belki ondandır diye ama bu defa hata kodu seçeneğe göre değişmesine rağmen sonuçta hep hata verdi ve çalışmadı.
Hatanın sebebi ve çözümü konusunda yardımcı olabilir misiniz?