I'm trying to connect via HTTPS using SSLv3 (needed to consume a specific service), but when I try to perform the post, I get the following error:
At first, I think it's a problem in configuring the components. I already did a search but I could not solve my problem. Here is the code for setting up the components and submitting:
var
_idhttp : TIdHttp;
_idSSL : TIdSSLIOHandlerSocket;
_retorno : String;
begin
_idSSL := TIdSSLIOHandlerSocket.Create(nil);
with _idSSL do
begin
SSLOptions.Method := sslvSSLv3;
SSLOptions.Mode := sslmClient;
SSLOptions.VerifyMode := [];
SSLOptions.VerifyDepth := 0;
end;
_idhttp := TIdHTTP.Create(nil);
with _idhttp do
begin
IOHandler := _idSSL;
AllowCookies := true;
ProxyParams.BasicAuthentication := true;
ProxyParams.ProxyPort := 0;
request.ContentLength := -1;
request.ContentRangeEnd := 0;
request.ContentRangeStart := 0;
Request.Accept := 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
request.BasicAuthentication := false;
request.UserAgent := 'Mozilla/3.0 (compatible; Indy Library)';
HTTPOptions := [hoForceEncodeParams];
HandleRedirects := true;
end;
retorno := _idhttp.Post(URL,xmlIn);
end;
Thank you in advance for any help. Hugs!