Tag: web service预览模式: 普通 | 列表
09-04
18

web service :IP查询

String ipprovince = "";
        String ip = "58.214.5.162";
        try {

            // URL url=new
            // URL("http://www.youdao.com/smartresult-xml/search.s?type=ip&q=58.214.5.162");
            URL url = new URL("http://whois.pconline.com.cn/ip.jsp?ip=" + ip);
            HttpURLConnection connect = (HttpURLConnection) url
                    .openConnection();

查看更多...

Tags: web service

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 428