3
Vote

Add support for Proxies

description

I need to be able to access svn repositories from behind a proxy. To do this, I hacked the DownloadSVN source code.
 
I added a check box (named useDefaultProxyCheckBox) to the form, then the following code in MainForm.buttonGo_Click:
 
        if (useDefaultProxyCheckBox.Checked)
        {
            WebRequest.DefaultWebProxy = WebRequest.GetSystemWebProxy();
            WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultCredentials;
        }
        else
        {
            WebRequest.DefaultWebProxy = null;
        }

comments

Merlin2001 wrote Sep 2, 2015 at 8:36 PM

Maybe you can simply fix this by adding a DownloadSVN.exe.config file like proposed here: https://downloadsvn.codeplex.com/discussions/435557#PostContent_1046723

The config file's content would be:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <system.net>
        <defaultProxy enabled="true" useDefaultCredentials="true">
        </defaultProxy>
    </system.net>
</configuration>