I'm trying to use TIDHttp to access Paypal Api. I'm using Indy 10.6.2.0. Somehow when i try to get from https, i get this exception :
Error connecting with SSL. error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
Here is my code.
idhttp1.Request.CustomHeaders.Add('Content-Type: application/json');
idhttp1.Request.CustomHeaders.Add('Authorization: Bearer Access-Token');
idhttp1.Request.username := cid;
idhttp1.Request.Password := secret;
idhttp1.ConnectTimeout := -1;
idhttp1.get(https://api.sandbox.paypal.com/v1/oauth2/token);
Any help will be very appreciated. Thanks in advance !