11-25-2022, 09:32 PM
(11-25-2022, 12:58 PM)piaulino Wrote: Actual value is "https://dominio.com.br?sso=2423442342&token=fijfasjarwieiwerutiewurtutweoir739428kfnfn"
If that is true, you should not be getting that error raised with the code you have shown, eg:
Code:
aUrl := 'https://dominio.com.br?sso=2423442342&token=fijfasjarwieiwerutiewurtutweoir739428kfnfn';
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;The only way I can think of for you to be getting that error raised is if the server is redirecting you to an invalid URL. Are you getting the TIdHTTP.OnRedirect event fired before the error is raised? If not, then you need to provide a reproducible example.
That being said, are you sure that URL is even valid? When I try that URL in my browser, it is not able to connect to 'dominio.com.br'. I can't even ping that hostname, or find it in a DNS lookup.

