I have a problem with my program.
When i setup my program to use a proxy for ftp transfer and then afterwards i want to disable the proxy again and what command must i use to clean proxysettings?
when i change the proxytype with:
_ftp.Proxy.ProxyType = FtpProxyType.None
_ftp.Proxy.Host = Nothing
then program want to use the proxy again, until i restart the program.
Here is the code of proxuse:
If ProxyEnabled = True Then
If Trim(ProxyLogin) <> "" Then
If Trim(ProxyPassword) <> "" Then
ProxyPassword = Nothing
End If
_ftp.Proxy.ProxyType = ProxyType
_ftp.Proxy.Host = Proxy
_ftp.Proxy.Port = ProxyPort
_ftp.Proxy.UserName = ProxyLogin
_ftp.Proxy.Password = ProxyPassword
Else
_ftp.Proxy.ProxyType = ProxyType
_ftp.Proxy.Host = Proxy
_ftp.Proxy.Port = ProxyPort
End If
Else
_ftp.Proxy.ProxyType = FtpProxyType.None
_ftp.Proxy.Host = Nothing
End If
would be nice if someone can help me