We'll add these changes to the next version of wyUpdate. Thanks.
Hello, I noticed a problem with proxy authentication. If you are using either GetSystemWebProxy or new WebProxy(commands["proxy"]) and without proxyp and proxyu, the credentials are null (http://msdn.microsoft.com/en-us/library/system.net.webproxy.usedefaultcredentials%28v=VS.80%29.aspx - look at the default value). So, in order to avoid "Proxy Authentication Required" error, please, add by default the current credentials of the running user.
Suggested code below:
frmMain, line 510:if (commands["proxyu"] != null){ you code}//========add=========else{ FileDownloader.CustomProxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;}//=======end add=======
FileDownloader.cs, line 90:if (CustomProxy != null) WebRequest.DefaultWebProxy = CustomProxy;//========add=========else{ IWebProxy proxy = System.Net.WebRequest.GetSystemWebProxy();
if (proxy.Credentials == null) { proxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; }
System.Net.WebRequest.DefaultWebProxy = proxy;}//=======end add=======
Thank you.
We'll add these changes to the next version of wyUpdate. Thanks.