3
Vote

Support for proxy

description

When trying to use Juggeler's download wallpapers function (which I think is pretty awesome :) ) I encoutered the following problem: The remote server returned an error: (407) Proxy Authentication Required.
 This problem should appear on every computer that uses a proxy (or more) to access the web. Therefore some option to configure how Juggler accesses the web would be required (and appreciated).
 
In my case I downloaded the source code and added inside the GetWebStream method the following lines before "response = (HttpWebResponse)request.GetResponse(); " :
         //Set the system proxy with valid server address or IP and port.
        System.Net.WebProxy pry = new System.Net.WebProxy("my_Proxy's_IP", my_Proxy's_port);
        //The DefaultCredentials automatically get username and password.
        pry.Credentials = CredentialCache.DefaultCredentials;
       request.Proxy = pry;
 
and now the download function works just fine.

comments