使用XMLHTTP制作域名查询系统

1150436076

1150436076

2016-01-29 17:51

使用XMLHTTP制作域名查询系统,使用XMLHTTP制作域名查询系统
 

<%
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

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/asp/)

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

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/asp/)

<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"
                  <opti

展开更多 50%)
分享

猜你喜欢

使用XMLHTTP制作域名查询系统

ASP
使用XMLHTTP制作域名查询系统

使用xmlhttp为网站增加域名查询功能

Web开发
使用xmlhttp为网站增加域名查询功能

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

多个域名后缀同时查询的域名查询系统

ASP
多个域名后缀同时查询的域名查询系统

使用Flex结合Webservice完成域名查询

电脑网络
使用Flex结合Webservice完成域名查询

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

域名查询代码公布

PHP
域名查询代码公布

使用xml http为网站增加域名查询功能

ASP
使用xml http为网站增加域名查询功能

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Linux指令篇:磁盘维护--mke2fs

Linux指令篇:磁盘维护--mke2fs

轻松实现将上传图片到数据库

轻松实现将上传图片到数据库
下拉加载更多内容 ↓