你的思路是对的!~
关键是判断是否可用!~最好用个TEMP.ASP文件测试一下~!让用户来确定是否可用~!
或者用命令行!~什么命令我忘了~!可以显示页的HTML输出!~判断一下就行了!~

解决方案 »

  1.   

    to test if the proxy server is alive, you can use a ping utility like the followinghttp://www.csharphelp.com/archives/archive6.htmlto test if you can reach the destination through the proxy, try to do a request with the proxy, for exampleHttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
    req.Proxy = new WebProxy("proxy address");
    req.Timeout = 1000; //1 second, will throw an exception will it times out
    HttpWebResponse myHttpWebResponse=(HttpWebResponse)req.GetResponse();
    ....