Hi everyone, I am using DownloadStringAsync to test a list of proxy servers against a website. (Make sure the proxies are valid by requesting a website using the proxies and making sure no errors occured, such as timeouts.)
Some proxies will timeout during this operation, I need to be able to know when this happens, or the DownloadStringCompleted event will not fire, and I need it to.
After Google I was told to create a class which inherits from Net.Webclient, and to override the GetWebRequest method, setting the Webclients desired timeout in that method.
This doesn't seem to be working, because when I test my list of about 600 proxies with downloadstringasync, some of the requests are not timing out and not throwing the DownloadStringCompleted event.
Someone mind helping!?! I heard that you can do it using a Timer object somehow...maybe in my custom Webclient classes in an overridden method?
Some proxies will timeout during this operation, I need to be able to know when this happens, or the DownloadStringCompleted event will not fire, and I need it to.
After Google I was told to create a class which inherits from Net.Webclient, and to override the GetWebRequest method, setting the Webclients desired timeout in that method.
This doesn't seem to be working, because when I test my list of about 600 proxies with downloadstringasync, some of the requests are not timing out and not throwing the DownloadStringCompleted event.
Someone mind helping!?! I heard that you can do it using a Timer object somehow...maybe in my custom Webclient classes in an overridden method?