2

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?

Theodor Zoulias
  • 34,835
  • 7
  • 69
  • 104

2 Answers2

3

Use webClient.Proxy=GlobalProxySelection.GetEmptyWebProxy();

See this for more info: https://stackoverflow.com/a/27603874/6550457

Community
  • 1
  • 1
FloatingKiwi
  • 4,408
  • 1
  • 17
  • 41
2

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!