一个简单的test
public class UrlTest {public static void main(String[] args) {try {URL myurl = new URL("http://yinny.iteye.com/admin");BufferedReader br = new BufferedReader(new InputStreamReader(myurl.openStream(), "utf8")); String readstr = br.readLine(); while(readstr!=null){ System.out.println(readstr); readstr = br.readLine(); } br.close();} catch (IOException e) {e.printStackTrace();}}}