My college has 5-6 proxy servers and occasionally some of them are down or slow. I would like to write a program that would help me determine the fastest available proxy server.开发者_如何学JAVA Does there exist any application for this already?
First of all, a quick Google reveals that this kind of software already exists. I haven't tried it though, so I can't say anything about the quality of those.
If you decide to make one yourself, here is a rough sketch on how you could do it with .NET:
- Maintain a list of proxy server candidates
- Issue requests (to the same resources for all servers) through these proxies using HttpWebRequest and setting the Proxy property.
- Measure average request time.
- Set the browser proxy setting to the server that turned out to be fastest.
精彩评论