JAVA 模拟浏览器请求

来源:互联网 发布:黑页源码怎么用 编辑:程序博客网 时间:2024/05/09 13:45
            HttpClient httpClient=new DefaultHttpClient();            HttpGet httpGet=new HttpGet("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=27.154.9.27");             HttpResponse response=httpClient.execute(httpGet);            String result=EntityUtils.toString(response.getEntity(),"UTF-8");

0 0
原创粉丝点击