1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/FTP/CreateConnection.txt

19 lines
690 B
Plaintext
Raw Normal View History

2025-07-17 22:02:56 +03:00
 Domain = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
// Simple connection
2025-07-18 19:54:06 +03:00
FTPSettings = OPI_FTP.GetConnectionSettings(Domain, 21, Login, Password);
2025-07-17 22:02:56 +03:00
Result = OPI_FTP.CreateConnection(FTPSettings);
// TLS connection through proxy
2025-07-18 19:54:06 +03:00
FTPInternalAddress = "172.33.0.11";
ProxyAddress = "127.0.0.1";
FTPSettings = OPI_FTP.GetConnectionSettings(FTPInternalAddress, 21, Login, Password);
2025-07-17 22:02:56 +03:00
ProxySettings = OPI_FTP.GetProxySettings(ProxyAddress, 1080, "socks5", "proxyuser", Password);
TLSSettings = OPI_FTP.GetTlsSettings(True);
Result = OPI_FTP.CreateConnection(FTPSettings, ProxySettings, TLSSettings);