Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- IdHTTP1:=TIdHTTP.Create(nil);
- try
- LHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
- try
- // does not seem to do anything
- LHandler.TransparentProxy.Host:='2.2.2.2';
- LHandler.TransparentProxy.Port:=8084;
- LHandler.TransparentProxy.Enabled:=true;
- // this works even when using HTTP proxy for HTTPS
- idHTTP1.ProxyParams.ProxyServer:='1.1.1.1';
- idHTTP1.ProxyParams.ProxyPort:=8080;
- IdHTTP1.IOHandler:=LHandler;
- Src:= IdHTTP1.Get('https://csv.business.tomtom.com/extern?account='+company+'&username='+user+'&password='+password+'&apikey='+apikey+'&lang=en&action=showObjectReportExtern');
- finally
- LHandler.Free;
- end;
- finally
- IdHTTP1.Free;
- end;
- except on E: Exception do
- // Writeln(E.ClassName, ': ', E.Message);
- end;
Add Comment
Please, Sign In to add comment