大家说的SUN的JEE Tutorial是这个吗?# Java - 爪哇娇娃
d*8
1 楼
WebClient client = new WebClient();
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.2; .NET CLR 1.0.3705;)");
Stream strm=client.OpenRead("http://finance.yahoo.com/q?s=goog");
读取的网页是yahoo的error页面
To get a quote, enter a company name or stock symbol in the quote box above.
而控制台下直接运行 wget -O - http://finance.yahoo.com/q?s=goog没有问题,请问如何避开被yahoo发现是程序运行的webclient呢?
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.2; .NET CLR 1.0.3705;)");
Stream strm=client.OpenRead("http://finance.yahoo.com/q?s=goog");
读取的网页是yahoo的error页面
To get a quote, enter a company name or stock symbol in the quote box above.
而控制台下直接运行 wget -O - http://finance.yahoo.com/q?s=goog没有问题,请问如何避开被yahoo发现是程序运行的webclient呢?