代理ip
1、代理ip分:透明、匿名、高匿
2、设置代理ip
Stopwatch sw = new Stopwatch(); sw.Start(); string proxyIP = "125.77.25.116";//"219.153.76.77"; //"210.29.26.250";//"120.26.197.149"; //"112.91.218.21"; int proxyPort = 80;//8089; //9000; WebProxy proxy = new WebProxy(proxyIP, proxyPort); HttpWebRequest rq =(HttpWebRequest)WebRequest.Create("http://www.cn357.com/notice165399_CDW3030A1B3"); rq.Timeout = 1000*10; rq.Proxy = proxy; string retString = string.Empty; using (HttpWebResponse response = (HttpWebResponse)rq.GetResponse()) { Stream myResponseStream = response.GetResponseStream(); StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.Default); retString = myStreamReader.ReadToEnd(); myStreamReader.Close(); myResponseStream.Close(); } sw.Stop(); Console.WriteLine(proxyIP + ":" + retString.Substring(0, 10)+";"+ sw.Elapsed.TotalSeconds);
3、
无忧代理 http://www.data5u.com/

浙公网安备 33010602011771号