Reputation: 37
I am simply using WebClient.DownloadString()
and it is outrageously slow. Maxing out at 40kbs I have tried setting the WebClient.Proxy
to null which didn't work and i am not anywhere near maxing my internet speed. What am I doing wrong?
Upvotes: 2
Views: 4224
Reputation:
Beside the working answer, It has an deprecated code, Here is the working updated code which is working with full speed for me:
client.Proxy = WebRequest.DefaultWebProxy;
Hope it helps someone who doesn't want to use obsolete code!
Upvotes: 2
Reputation: 4506
Use webClient.Proxy=GlobalProxySelection.GetEmptyWebProxy();
See this for more info: https://stackoverflow.com/a/27603874/6550457
Upvotes: 3