万网域名查询接口

本文介绍万网提供的两个免费域名查询接口及其使用方法。接口可以查询域名是否已被注册,但频繁调用可能被封IP。同时提供了一个Java实现示例,演示如何通过HttpClient发起请求并获取响应。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文地址: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); 

}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值