Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Dec 23, 2023
1 parent 6afcbdd commit 74dc788
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions Examples/Example15-BasicExampleFTPwithProxy.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
Import-Module .\Transferetto.psd1 -Force

Set-FTPTracing -Enable
# Login via UserName/Password via proxy
$Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' -ProxyHost '192.252.216.81' -ProxyPort 4145 -ProxyType FtpClientSocks5Proxy
$List = Get-FTPList -Client $Client
$List | Format-Table
Disconnect-FTP -Client $Client
# # Login via UserName/Password via proxy
# $Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' -ProxyHost '192.252.216.81' -ProxyPort 4145 -ProxyType FtpClientSocks5Proxy
# $List = Get-FTPList -Client $Client
# $List | Format-Table
# Disconnect-FTP -Client $Client


# $Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password'
# $List = Get-FTPList -Client $Client
# $List | Format-Table
# Receive-FTPFile -Client $Client -RemotePath '/readme.txt' -LocalPath 'C:\Temp\readme.txt'
# Disconnect-FTP -Client $Client


# Login via UserName/Password with Proxy
$Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' -ProxyHost '104.37.135.145' -ProxyPort 4145 -ProxyType FtpClientSocks4aProxy
$List = Get-FTPList -Client $Client
$List | Format-Table
Disconnect-FTP -Client $Client
#Remove-Item -LiteralPath 'C:\Temp\readme.txt'
#Receive-FTPFile -Client $Client -RemotePath '/readme.txt' -LocalPath 'C:\Temp\readme.txt'
Disconnect-FTP -Client $Client


# Set-FTPTracing -Enable
# # Login via UserName/Password
# $Client = Connect-FTP -Server 'ftp.dlptest.com' -Verbose -Username 'dlpuser' -Password 'rNrKYTX9g7z3RgJRmxWuGHbeu'
# $List = Get-FTPList -Client $Client
# $List | Format-Table
# $List.Count
# Disconnect-FTP -Client $Client

# # Login via UserName/Password
# $Client = Connect-FTP -Server 'ftp.dlptest.com' -Verbose -Username 'dlpuser' -Password 'rNrKYTX9g7z3RgJRmxWuGHbeu' -ProxyHost '104.37.135.145' -ProxyPort 4145 -ProxyType FtpClientSocks4aProxy
# $List = Get-FTPList -Client $Client
# $List | Format-Table
# $List.Count
# Disconnect-FTP -Client $Client

0 comments on commit 74dc788

Please sign in to comment.