万网域名查询接口

来源:互联网 发布:sql with语句 编辑:程序博客网 时间:2024/05/02 00:37

原文地址:http://www.cnblogs.com/zhanqi/archive/2012/03/19/2405381.html


万网域名查询接口,可查询域名是否已被注册

因为是免费的,所以如果查询频率过高,可能会被封IP

接口1:http://pandavip.www.net.cn/check/check_ac1.cgi?domain=zhanqi.me

返回值1:

("me|zhanqi.me|211|Domain name is not available");

("mobi|zhanqi.mobi|210|Domain name is available");

接口2:http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=zhanqi.me

返回值2:

<?xmlversion="1.0"encoding="gb2312"?> 

<property> 

   <returncode>200</returncode> 

   <key>zhanqi.me</key> 

   <original>211 : Domain name is not available</original> 

</property>

附java实现代码:HttpClient

publicstaticvoid main(String[]args) throws Exception { 

   HttpClient httpclient =newDefaultHttpClient(); 

   ResponseHandler<String>responseHandler = newBasicResponseHandler(); 

   String url ="http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=zhanqi.me"; 

   url = "http://pandavip.www.net.cn/check/check_ac1.cgi?domain=zhanqi.me"; 

   HttpGet get = newHttpGet(url); 

   get.setURI(URI.create(url)); 

   String responseBody = httpclient.execute(get, responseHandler); 

   System.out.println(responseBody); 

}


0 0
原创粉丝点击