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?
Asked
Active
Viewed 3,987 times
2

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

michael becker
- 37
- 1
- 6
2 Answers
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
-
Or just 'webClient.Proxy = null;' – mBardos Jan 13 '23 at 08:36
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!