tags:

views:

49

answers:

2

I need to be able to download some file from a regular site using my proxy server, I already try this:

System.Net.WebClient client = new System.Net.WebClient();

client.Proxy = new WebProxy(ip, port);

client.DownloadFile(url);

but it's not works at all, I don't know what I missed,(without a proxy it works)

thanks,

Dani.

+1  A: 

Do you get an error? Do you need to specify some credentials?

RandomNoob
+1  A: 

Maybe your proxy is dead? Did you checked it? Please provide more information about it, did you get error/exception ?

We can't help you if you don't provide us with information we must know ;)

Lukas Šalkauskas
This could have been a comment.
Darin Dimitrov