六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網(wǎng)中心:是一個免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺!

使用XMLHTTP制作域名查詢系統(tǒng)

[摘要]<%On Error Resume NextServer.ScriptTimeOut=9999999Function getHTTPPage(Path) t = GetBody(Path) getHTTPPage=BytesToBstr(t,"GB2312"...

<%
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)
'www.knowsky.com
'response.write Instr (wstr,"可以注冊")  
  if instr(lcase(wstr),"已被注冊的域名")>0 then
     body="域名已經(jīng)被注冊"
  elseif instr(lcase(wstr),"未被注冊的域名")>0 then
  body="域名未被注冊"
  else
     body="網(wǎng)絡(luò)延遲,請重新查找"
  end if                                                                   
end if
%>

<table width="40%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
  <tr>
    <td height="26" bgcolor="efefef">域名查詢系統(tǒng):<% 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">&nbsp;</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 name="query" type="text" style="font-size:14px;width:150" value="好域名">
          <input type="submit" name="ss" value="查看"   onclick=document.search_form.action='http://search.sohu.com/web' style="font-size:14px;width=40;height=20">
          &nbsp;</div>
      </FORM></td>
  </tr>
</table>

代碼我已經(jīng)在本地測試過了。正常通過。
文章里面的用到的Microsoft.XMLHTTP組件。其用法請參見:http://www.knowsky.com/5190.html




主站蜘蛛池模板: 四虎精品成人免费观看 | 午夜精品视频在线观看 | 四虎影城| 日本一二三区视频 | 日本高清视频免费观看 | 亚洲欧美日韩不卡一区二区三区 | 欧美一级看片a免费观看 | 欧美综合视频在线 | 五月天丁香婷婷网 | 特一级黄 | 日韩黄色免费 | 夜夜嗨视频| 午夜色视频在线观看 | 视频二区在线观看 | 欧美视频在线不卡 | 欧洲亚洲欧美国产日本高清 | 五色婷婷| 天天摸天天干 | 亚洲永久网站 | 亚洲成a人片在线观看播放 亚洲成a人片在线观看www | 亚洲激情另类小说 | 日韩高清在线观看 | 亚洲高清资源在线观看 | 天天干天天草 | 四虎成人网 | 亚洲爱爱视频 | 青娱乐在线观看 | 亚洲v日本 | 欧美综合精品一区二区三区 | 色橹橹欧美在线观看视频高清免费 | 中文天堂在线最新版在线www | 天天草夜夜 | 日韩欧美亚洲综合一区二区 | 欧美综合图片区 | 青娱乐免费视频 | 中文字幕成人免费高清在线 | 一区二区免费视频观看 | 欧美写真视频一区 | 综合色网站 | 中文字幕欧美日韩 | 四虎国产精品永久地址51 |