谁能用java程序读取出以下链接的页面代码?小弟在此感谢
http://panda.www.net.cn/cgi-bin/Check.cgi?domain=bzsp&ext=com我用了好几种办法读取他,读出来的都是“请联系万网”这几个字,不过我用ASP的Microsoft.XMLHTTP的对象能把他的代码读取出来,不知JAVA用什么方法才能读出来。
我的代码是:String url="http://panda.www.net.cn/cgi-bin/Check.cgi?domain=bzsp&ext=com";
StringBuffer str=new StringBuffer("");
String fileLine="";
try {
        java.net.URL pageUrl = new java.net.URL(url);
        pageUrl.openConnection();
        BufferedReader in = new BufferedReader(new InputStreamReader(pageUrl.openStream()));
          while((fileLine=in.readLine())!=null) {
            str.append(fileLine+'\n');
          }
          in.close();
        }
        catch(Exception e) {
        str=new StringBuffer("");
        }
System.out.println(str);