原文地址: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:
<?xml version="1.0" encoding="gb2312"?>
<property>
<returncode>200</returncode>
<key>zhanqi.me</key>
<original>211 : Domain name is not available</original>
</property>
附java实现代码:HttpClient
public static void main(String[] args) throws Exception {
HttpClient httpclient = new DefaultHttpClient();
ResponseHandler<String> responseHandler = new BasicResponseHandler();
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 = new HttpGet(url);
get.setURI(URI.create(url));
String responseBody = httpclient.execute(get, responseHandler);
System.out.println(responseBody);
}