域名查询系统--适合新手

查询系统

<%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function

Function GetBody(url)
on error resume next
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False, "", ""
.Send
GetBody = .ResponseBody
End With
Set Retrieval = Nothing
End Function

Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
%>
<%
if request("domain")<>"" then
'url="http://panda.www.net.cn/cgi-bin/Whois.cgi?domain="&request("domain")&"&"&request("root")&"=yes&work=whois&referer=http://panda.www.net.cn/cgi-bin/Check.cgi?domain="&request("domain")
url="http://panda.www.net.cn/cgi-bin/Check.cgi?domain="&request("domain")&"&ext="&request("root")
wstr=getHTTPPage(url)

'response.write Instr (wstr,"可以注册")
if instr(lcase(wstr),"已被注册的域名")>0 then
body="域名已经被注册"
elseif instr(lcase(wstr),"未被注册的域名")>0 then
body="域名未被注册"
else
body="网络延迟,请重新查找"
end if
end if
%>

<table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr>
<td height="26" bgcolor="efefef">域名查询系统:<% if request("domain")>"" then response.Write(request("domain")&"."&request("root")&body) end if%></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><form name="form1" method="post" action=""><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>

<td height="36"> <div align="center">www.
<input type="text" name="domain">
<select name="root" id="select">
<option value="cn" selected>.cn</option>
<option value="com">.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="com.cn">.com.cn</option>
<option value="net.cn">.net.cn</option>
<option value="gov.cn">.gov.cn</option>
</select>
</div></td>

</tr>
<tr>
<td height="35">
<div align="center">
<input type="submit" name="Submit" value=" 查 询 ">
</div>
<div align="center"></div></td>
</tr>
</table></form></td>
</tr>
</table>

<p align="center"> </p>
<table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr>
<td height="42" bgcolor="#FFFFFF">
<FORM name=search_form action='http://search.sohu.com/web' method=get target=_blank>
<div align="center">
<input type="hidden" name="pid" value="hljec">
<input n

时间: 2024-08-03 09:28:39

域名查询系统--适合新手的相关文章

新手初练:用ASP做一个域名查询系统

开发这样一个域名查询系统其实是一件很容易的事情,只要我们能够让使用者进行查询后得出结果,看看自己输入的域名是不是被别人占用了就可以,如果没有被占用我们就可以自行去申请了. <%On Error Resume NextServer.ScriptTimeOut=9999999Function getHTTPPage(Path)        t = GetBody(Path)  getHTTPPage=BytesToBstr(t,"GB2312")End functionFuncti

用ASP做一个域名查询系统

查询系统|查询系统 开发这样一个域名查询系统其实是一件很容易的事情,只要我们能够让使用者进行查询后得出结果,看看自己输入的域名是不是被别人占用了就可以,如果没有被占用我们就可以自行去申请了.<%On Error Resume NextServer.ScriptTimeOut=9999999Function getHTTPPage(Path)        t = GetBody(Path)  getHTTPPage=BytesToBstr(t,"GB2312")End funct

使用XMLHTTP制作域名查询系统

<%On Error Resume NextServer.ScriptTimeOut=9999999Function getHTTPPage(Path)        t = GetBody(Path)  getHTTPPage=BytesToBstr(t,"GB2312")End function Function GetBody(url)         on error resume next        Set Retrieval = CreateObject(&quo

PHP+AJAX实现的国际域名查询系统开发实例教程

PHP+AJAX 域名查询预备知识 本查询系统利用 PHP 和 JQUery 的 Ajax 功能实现了对域名信息的查询(这里主要实现了域名是否已经注册的查询).系统主要用到了万网提供的域名查询 API 接口,相关知识点罗列如下:     JQUery Ajax 的实现:这部分内容具体可以参见 JQuery API 文档或本站即将推出的<JQUery 教程>.     file_get_contents 函数:把整个文件读入一个字符串,这里用于读取一个网页(万网 API 返回结果页面).    

用ASP亲手打造域名查询系统

查询系统|域名查询 一.原理: 原理非常简单,域名的查询主要是基于RFC 954提供的WHOIS协议.在实现过程中,我们通过自己的WEB服务器访问NIC站点的WHOIS数据库服务器,从WHOIS数据库中查询我们所需要的内容,然后通过ASP组合成网页回送给客户端. 同时,我们使用xmlHttp协议实现客户端网页无刷新效果以及向服务端提出检索WHOIS数据的要求. 具体流程为:客户端通过xmlhttp提出域名查询要求-->WEB服务器中的ASP侦听页接受请求后使用xmlhttp向WHOIS服务器发送

ASP.NET域名查询系统

asp.net|查询系统 <% @Page Language="C#" %><% @Import Namespace="System.Net.Sockets" %><% @Import Namespace="System.Text" %><% @Import Namespace="System.IO" %><html><head><title>

PHP写的域名查询系统whois

查询系统 <?PHP if ($domain) { if ($domain) { $fp = fsockopen( "rs.internic.net", 43, &$errno, &$errstr, 10); if (!$fp) { echo "$errstr ($errno)n"; } else { fputs($fp, "$domainrn"); while(!feof($fp)) { $buf = fgets($fp,

asp下多个域名后缀同时查询的域名查询系统_应用技巧

写的很简单,只是实现了功能 <% Function formaturl(yes)  If mid(yes,5,1)<>"" then  yes1 = left(yes,3)  yes2 = right(yes,cint(len(yes))-3)  formaturl = yes1 & "." & yes2  else  formaturl=yes  end if End Function  '取得远程网页二进制源代码 Functio

域名查询系统用到的类_ASP CLASS类

复制代码 代码如下: <% Dim Domain Set Domain = New Cls_DomainFunctionClass Cls_DomainFunction     Private vListURL     Private Thief_     Private vDomainArr, vDomainName     Private vLoopI     Private vDomainsName, vDomainMainBody     Private TLDCode     Priv