I need to be able to download some file from a regular site using my proxy server.
I already tried this:
System.Net.WebClient client = new System.Net.WebClient();
client.Proxy = new WebProxy(ip, port);
client.DownloadFile(url);
but it’s not working at all. What did I miss? Without a proxy, it works.
Do you get an error? Do you need to specify some credentials?