title: Download file from proxy server using c#
body: <p>I want to download file using a proxy connection. My example code is:</p>
  
  <pre><code>        WebClient client = new WebClient();
          WebProxy wp = new WebProxy("url_proxy_server");
          //wp.Credentials = new NetworkCredential("id", "pass", "domain");
          client.Proxy = wp;
          client.DownloadFile("http:mylink", "Save Path");
  </code></pre>
  
  <p>Is this a correct mode to download? How i can set port number?</p>