I am using indy idhttp to work with telegram api,my code is something like this:
LHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
idHttp.ReadTimeout := 30000;
idHttp.IOHandler:=LHandler;
LHandler.SSLOptions.Method := sslvTLSv1;
LHandler.SSLOptions.Mode := sslmUnassigned;
idHttp.HandleRedirects := true;
//Proxy Code...
idHttp.Post( API + msg, Params, Stream);
my code works just fine,but the problem is because of censorship and filtering in my country ,i have to use VPN Services such as AnyConnect,L2TP,... Now my question is how can i use Indy ProxyParams to bypass censorship and post data,of course I know that i have to add below code before idhttp.post but i can't figure out which protocols does it supports or which VPN services should i use? Thanks in Advance.
idHttp.ProxyParams.ProxyServer:='xxxxxx';
idHttp.ProxyParams.ProxyUsername:='user';
idHttp.ProxyParams.ProxyPassword:='pass';
idHttp.ProxyParams.ProxyPort:=xxx;