0
I am trying to make connection via HTTPS using Sslv3(required 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 the configuration of the components. I did some research, but I couldn’t solve my problem. Follow the component configuration code and send:
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;
Thanks in advance for any help. Hugs!