用asp檢查一個域名的備案狀態的例子!- 虛擬主機,虛擬主機域名注冊-常見問題,虛擬主機,網頁制作,域名注冊,主機,企業郵局,主頁空間,個人主頁,網絡實名,主機托管,網站建設,域名">

91麻豆精品国产自产在线观看一区_欧美亚洲第一页_中文字幕亚洲字幕_免费久久99精品国产

  • 購物車  0

    我的購物車

    0 件商品,共計 0
    去購物車結算
  • 最新公告 

    未讀消息 :  忽略

    查看全部

  • 常見問題
  • 有問必答
  • 網站備案

歡迎您來到禾城數碼,開始互聯網之旅!

用asp檢查一個域名的備案狀態的例子!

<%
'程序功能,自動到信產部網站核對一個域名的備案情況,如果備案成功,返回備案編號。

ICPCheckURL=1
Dim DataSet_ICP()

function GetsRoot(ByVal whichDomain)
 whichDomain=Lcase(whichDomain)
 Exts=".bj.cn,.sh.cn,.tj.cn,.cq.cn,.he.cn,.sx.cn,.nm.cn,.ln.cn,.jl.cn,.hl.cn,.js.cn,.zj.cn,.ah.cn,.fj.cn,.jx.cn,.sd.cn,.ha.cn,.hb.cn,.hn.cn,.gd.cn,.gx.cn,.hi.cn,."
Exts=Exts&"sc.cn,.gz.cn,.yn.cn,.xz.cn,.sn.cn,.gs.cn,.qh.cn,.nx.cn,.xj.cn,.tw.cn,.hk.cn,.mo.cn,"
 Exts= Exts & ".ac.cn,.com.cn,.net.cn,.org.cn,.gov.cn,.edu.cn,.com,.net,.org,.biz,.cn,.info,.tv,.cc,.tw,.name,.ws,.in,.hk,.tw,.us,.au,.ac,.ca"
 AllTop=split(Exts,",")
 if len(whichDomain)>3 then
  for z=0 to Ubound(AllTop)
   extLen=len(AllTop(z))
   if right(whichDomain,extLen)=AllTop(z) then
    prefix=left(whichDomain,len(whichDomain)-extLen)
    dotPos=inStrRev(prefix,".")
    if dotPos>0 then
     whichDomain=mid(prefix,dotPos+1) & AllTop(z)
    end if
    exit for
   end if
  next
 end if
 GetsRoot=whichDomain
end function


function getCmd(strM)
 strM=lcase(strM)
 if inStr(strM," ")>0 then
  getCmd=left(strM,inStr(strM," ")-1)
 else
  getCmd=strM
 end if
end function

Function bstr(vIn)

 Dim strReturn,iii,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
 strReturn = ""
 
 For iii = 1 To LenB(vIn)
  ThisCharCode = AscB(MidB(vIn,iii,1))
  If ThisCharCode < &H80 Then
   strReturn = strReturn & Chr(ThisCharCode)
  Else
   NextCharCode = AscB(MidB(vIn,iii+1,1))
   strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
   iii = iii + 1
  End If
 Next
 bstr = strReturn  
End Function

Sub tinyFitler(someMes)
 ReDim Preserve DataSet_ICP(0)
 blDrop=true
 blN=false
 PreChar=""
 PreCmd=""
 blInTd=false
 intTB=0
 intTR=0
 intTD=0
 blInTd=false
 infos=""

 for iii=1 to len(someMes)
  Schar=mid(someMes,iii,1)
  if Schar="<" then
  blDrop=true
  lastCmd=""
  blN=false
  elseif Schar=">" then
  blDrop=false '某個命令完成
  lastCmd=getCmd(lastCmd)
  if blN then
    if lastCmd="a" then
     if blInTd then infos=infos & ","
    end if
    if lastCmd="td" then
     blInTD=false
     DataSet_ICP(intTR)=DataSet_ICP(intTR) & infos & "`"
     infos=""
    end if
  else
    if lastCmd="table" then
     intTB=intTB+1
      if intTB>1 then
       Exit Sub '不用處理余下的表格
      end if
    end if
    if lastCmd="tr" then
     intTR=intTR+1
     intTD=0
     blInTD=false
     ReDim Preserve DataSet_ICP(intTR)
    end if
 
    if lastCmd="td" then
     blInTD=true
     intTD=intTD+1
    end if
    
  end if

  elseif Schar="/" and PreChar="<" then
  blN=true
  else
   if not blDrop then
    if blInTD then infos=infos & Schar
   else
    lastCmd=lastCmd & Schar
   end if
  end if
  PreChar=Schar
 next

end Sub
'程序設計:西部數碼(http://www.west263.com )專業提供虛擬主機、域名注冊

Function GetICP(ByType,textvalue)
 on error resume next

 if ByType="No" then
  Gtype=8
 else
  Gtype=2
 end if
'---type=6根據url查詢(URL);type=2,根據域名查詢(DO),type=8,根據icp編號來查(No)

 if ByType="URL" then
  Gtype=6
 end if

 Referer="http://www.miibeian.gov.cn/Search/WW_ICP_WhetherRecord_Select.jsp";
 if ICPCheckURL="1" then
  url="http://211.94.161.10/Search/WW_ICP_WhetherRecord_Search.jsp?selectid="; & Gtype & "&textfield=" & textvalue
 elseif ICPCheckURL="2" then
  url="http://www.miibeian.gov.cn/Search/WW_ICP_WhetherRecord_Search.jsp?selectid="; & Gtype & "&textfield=" & textvalue
 end if


Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Post", url, false
   .setRequestHeader "Referer",Referer
.Send
   GetICP =.ResponseBody
   End With
Set Retrieval = Nothing
 GetICP=bstr(GetICP)
End Function


'如果要檢查,必須先LoadICP
Function LoadICP(BYWHICH,GIVE)
 RetCode=GetICP(BYWHICH,GIVE)
 if isNull(RetCode) then
  LoadICP=false
 else
  Call tinyFitler(RetCode)
  LoadICP=true
 end if
end Function

Function GetNo()
 RRsets=Ubound(DataSet_ICP)
 if RRsets=0 then
  GetNo="ERROR"
 end if
 if RRsets=1 then
  GetNo="NONE"
 end if
 if RRsets>1 then
  GetNo=split(DataSet_ICP(2),"`")(3)
 end if 
end Function


ckbind="要檢查的域名.com"
 If LoadICP("DO",ckbind) Then
   IcpNO=GetNo()
   If IcpNo="NONE" Or IcpNo="ERROR" Then
    if LoadICP("URL",ckbind) then
     IcpNO=GetNo() 
    end if
   End If 'GetsRoot


   If IcpNo="NONE" Or IcpNo="ERROR" Then
    if LoadICP("DO",GetsRoot(ckbind)) then
     IcpNO=GetNo() 
    end if
   End If

   If IcpNo="NONE" Or IcpNo="ERROR" Then
    if LoadICP("URL",GetsRoot(ckbind)) then
     IcpNO=GetNo() 
    end if
   End If
  
   if IcpNo="NONE" or IcpNo="ERROR" then
   respnose.write  "該域名還未備案成功!"
   else
   respnose.write  "該域名已經備案成功!備案編號是:"&IcpNO
   end if

 End If


%>

<% '程序功能,自動到信產部網站核對一個域名的備案情況,如果備案成功,返回備案編號。 ICPCheckURL=1 Dim DataSet_ICP() function GetsRoot(ByVal whichDomain) whichDomain=Lcase(whichDomain) Exts=".bj.cn,.sh.cn,.tj.cn,.cq.cn,.he.cn,.sx.cn,.nm.cn,.ln.cn,.jl.cn,.hl.cn,.js.cn,.zj.cn,.ah.cn,.fj.cn,.jx.cn,.sd.cn,.ha.cn,.hb.cn,.hn.cn,.gd.cn,.gx.cn,.hi.cn,." Exts=Exts&"sc.cn,.gz.cn,.yn.cn,.xz.cn,.sn.cn,.gs.cn,.qh.cn,.nx.cn,.xj.cn,.tw.cn,.hk.cn,.mo.cn," Exts= Exts & ".ac.cn,.com.cn,.net.cn,.org.cn,.gov.cn,.edu.cn,.com,.net,.org,.biz,.cn,.info,.tv,.cc,.tw,.name,.ws,.in,.hk,.tw,.us,.au,.ac,.ca" AllTop=split(Exts,",") if len(whichDomain)>3 then for z=0 to Ubound(AllTop) extLen=len(AllTop(z)) if right(whichDomain,extLen)=AllTop(z) then prefix=left(whichDomain,len(whichDomain)-extLen) dotPos=inStrRev(prefix,".") if dotPos>0 then whichDomain=mid(prefix,dotPos+1) & AllTop(z) end if exit for end if next end if GetsRoot=whichDomain end function function getCmd(strM) strM=lcase(strM) if inStr(strM," ")>0 then getCmd=left(strM,inStr(strM," ")-1) else getCmd=strM end if end function Function bstr(vIn) Dim strReturn,iii,ThisCharCode,innerCode,Hight8,Low8,NextCharCode strReturn = "" For iii = 1 To LenB(vIn) ThisCharCode = AscB(MidB(vIn,iii,1)) If ThisCharCode < &H80 Then strReturn = strReturn & Chr(ThisCharCode) Else NextCharCode = AscB(MidB(vIn,iii+1,1)) strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) iii = iii + 1 End If Next bstr = strReturn End Function Sub tinyFitler(someMes) ReDim Preserve DataSet_ICP(0) blDrop=true blN=false PreChar="" PreCmd="" blInTd=false intTB=0 intTR=0 intTD=0 blInTd=false infos="" for iii=1 to len(someMes) Schar=mid(someMes,iii,1) if Schar="<" then blDrop=true lastCmd="" blN=false elseif Schar=">" then blDrop=false '某個命令完成 lastCmd=getCmd(lastCmd) if blN then if lastCmd="a" then if blInTd then infos=infos & "," end if if lastCmd="td" then blInTD=false DataSet_ICP(intTR)=DataSet_ICP(intTR) & infos & "`" infos="" end if else if lastCmd="table" then intTB=intTB+1 if intTB>1 then Exit Sub '不用處理余下的表格 end if end if if lastCmd="tr" then intTR=intTR+1 intTD=0 blInTD=false ReDim Preserve DataSet_ICP(intTR) end if if lastCmd="td" then blInTD=true intTD=intTD+1 end if end if elseif Schar="/" and PreChar="<" then blN=true else if not blDrop then if blInTD then infos=infos & Schar else lastCmd=lastCmd & Schar end if end if PreChar=Schar next end Sub '程序設計:西部數碼(http://www.west263.com )專業提供虛擬主機、域名注冊 Function GetICP(ByType,textValue) on error resume next if ByType="No" then Gtype=8 else Gtype=2 end if '---type=6根據url查詢(URL);type=2,根據域名查詢(DO),type=8,根據icp編號來查(No) if ByType="URL" then Gtype=6 end if Referer="http://www.miibeian.gov.cn/Search/WW_ICP_WhetherRecord_Select.jsp" if ICPCheckURL="1" then url="http://211.94.161.10/Search/WW_ICP_WhetherRecord_Search.jsp?selectid=" & Gtype & "&textfield=" & textValue elseif ICPCheckURL="2" then url="http://www.miibeian.gov.cn/Search/WW_ICP_WhetherRecord_Search.jsp?selectid=" & Gtype & "&textfield=" & textValue end if Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "Post", url, false .setRequestHeader "Referer",Referer .Send GetICP =.ResponseBody End With Set Retrieval = Nothing GetICP=bstr(GetICP) End Function '如果要檢查,必須先LoadICP Function LoadICP(BYWHICH,GIVE) RetCode=GetICP(BYWHICH,GIVE) if isNull(RetCode) then LoadICP=false else Call tinyFitler(RetCode) LoadICP=true end if end Function Function GetNo() RRsets=Ubound(DataSet_ICP) if RRsets=0 then GetNo="ERROR" end if if RRsets=1 then GetNo="NONE" end if if RRsets>1 then GetNo=split(DataSet_ICP(2),"`")(3) end if end Function ckbind="要檢查的域名.com" If LoadICP("DO",ckbind) Then IcpNO=GetNo() If IcpNo="NONE" Or IcpNo="ERROR" Then if LoadICP("URL",ckbind) then IcpNO=GetNo() end if End If 'GetsRoot If IcpNo="NONE" Or IcpNo="ERROR" Then if LoadICP("DO",GetsRoot(ckbind)) then IcpNO=GetNo() end if End If If IcpNo="NONE" Or IcpNo="ERROR" Then if LoadICP("URL",GetsRoot(ckbind)) then IcpNO=GetNo() end if End If if IcpNo="NONE" or IcpNo="ERROR" then respnose.write "該域名還未備案成功!" else respnose.write "該域名已經備案成功!備案編號是:"&IcpNO end if End If %>

來源:
閱讀:8509
日期:2006/12/12

  >> 相關文章
 
Top

客服熱線

0573-80897175

91麻豆精品国产自产在线观看一区_欧美亚洲第一页_中文字幕亚洲字幕_免费久久99精品国产
国产jizzjizz一区二区| 国产欧美一区二区精品久导航 | 日韩欧美一级特黄在线播放| 免费在线观看一区二区三区| 久久人人九九| 午夜av一区二区三区| 国产女主播一区二区三区| 国产精品国产三级国产普通话蜜臀| 99精品在线免费| 欧美成人一级视频| 不卡一区二区三区四区| 精品国产91乱码一区二区三区| 国产99精品国产| 精品国产一区二区三区四区四| 福利一区福利二区| 欧美精品一区二区三| 成人禁用看黄a在线| 亚洲精品在线免费观看视频| 99精品欧美一区二区三区小说| 久久美女高清视频| 欧美日韩三区| 亚洲精品自拍动漫在线| 亚洲一区二区成人| 天天操天天综合网| 在线观看一区不卡| 国产一区二区视频在线播放| 欧美一级高清片| 色综合天天综合| 亚洲四区在线观看| 亚洲综合欧美日韩| 另类小说色综合网站| 欧美一区二区视频网站| 91在线视频免费91| 亚洲同性同志一二三专区| 国产亚洲激情| 免费精品99久久国产综合精品| 6080日韩午夜伦伦午夜伦| 春色校园综合激情亚洲| 国产校园另类小说区| 亚洲成色精品| 午夜精品久久久久久| 欧美日韩在线三区| 成人毛片视频在线观看| 国产精品午夜免费| 国产亚洲在线| 日本亚洲视频在线| 欧美电影精品一区二区| 国内一区二区三区在线视频| 亚洲综合偷拍欧美一区色| 欧洲亚洲精品在线| 丁香激情综合国产| 中文字幕中文乱码欧美一区二区| 亚洲综合二区| 国产精品一区二区三区四区| 久久在线免费观看| 亚洲毛片网站| 日本vs亚洲vs韩国一区三区| 这里只有精品电影| 欧美人与禽性xxxxx杂性| 悠悠色在线精品| 欧美综合一区二区三区| 丰满亚洲少妇av| 最好看的中文字幕久久| 在线亚洲免费视频| av午夜一区麻豆| 艳妇臀荡乳欲伦亚洲一区| 欧美性感一类影片在线播放| 99精品国产一区二区三区不卡| 亚洲伦在线观看| 精品视频资源站| 91丨九色丨蝌蚪丨老版| 亚洲一二三四区| 欧美人伦禁忌dvd放荡欲情| 欧美精品入口| 青青草精品视频| 久久久久9999亚洲精品| 免费看的黄色欧美网站| 国产麻豆91精品| 亚洲欧洲日产国产综合网| 欧美体内she精视频| 欧美成人日韩| 蜜桃av噜噜一区二区三区小说| 久久精子c满五个校花| 色欲综合视频天天天| 91在线观看一区二区| 亚洲综合激情网| 欧美r级电影在线观看| 国产精品乱码| 波多野结衣的一区二区三区| 亚洲制服丝袜在线| 欧美大胆人体bbbb| 另类激情亚洲| 亚洲一区二区三区在线| 精品少妇一区二区三区在线视频| 国产精品日韩欧美一区| 不卡一区二区三区四区| 午夜精品久久久久久久99水蜜桃| 久久精品视频一区二区| 一本久久a久久免费精品不卡| 欧美在线首页| 奇米777欧美一区二区| 国产精品美女一区二区| 69av一区二区三区| 香蕉久久夜色| 欧美精品二区三区四区免费看视频| 美女诱惑一区二区| 自拍偷拍国产精品| 精品国产亚洲在线| 欧美在线看片a免费观看| 日韩午夜黄色| 色综合天天综合网天天狠天天| 久久99国产精品久久| 亚洲五月六月丁香激情| 欧美国产精品一区二区三区| 欧美日韩高清在线| 一本色道久久综合亚洲精品不卡| bt欧美亚洲午夜电影天堂| 日本午夜一区二区| 亚洲欧美另类图片小说| 26uuu另类欧美亚洲曰本| 欧美影院一区二区| 国产精品乱看| 国产综合欧美| 成人高清视频在线观看| 久久国产免费看| 午夜久久久影院| 亚洲婷婷综合色高清在线| 久久久久久久网| 日韩一二在线观看| 欧美性三三影院| 性欧美精品高清| 亚洲国产精品一区二区第一页| 91在线小视频| 丁香另类激情小说| 久久精品国产**网站演员| 夜色激情一区二区| 亚洲欧美影音先锋| 国产日产欧产精品推荐色| 欧美不卡在线视频| 欧美精品日韩综合在线| 在线区一区二视频| 久久久噜噜噜久久狠狠50岁| 国产午夜久久| 亚洲经典一区| 亚洲小说欧美另类婷婷| 欧美+日本+国产+在线a∨观看| 成人激情开心网| 国产成人av一区二区三区在线 | 欧美a级一区| 不卡视频在线观看| 国产精品12区| 国产在线精品免费av| 免费三级欧美电影| 午夜精品久久久久久久| 一区二区三区不卡视频在线观看| 中文字幕在线一区二区三区| 欧美国产激情二区三区| 国产亚洲欧美一级| 国产午夜精品久久久久久久| 精品对白一区国产伦| 精品日韩一区二区| 日韩欧美一级片| 日韩写真欧美这视频| 777久久久精品| 欧美狂野另类xxxxoooo| 欧美日韩国产首页在线观看| 欧美日韩精品一区视频| 欧美日韩国产综合草草| 欧美日韩国产首页| 在线不卡一区二区| 欧美一区二区三区在线观看| 欧美日韩高清一区二区三区| 欧美日韩精品欧美日韩精品| 欧美日韩一区二区三区高清| 欧美色倩网站大全免费| 欧美日韩一区不卡| 51久久夜色精品国产麻豆| 欧美一区二区三区色| 欧美成人在线直播| 久久五月婷婷丁香社区| 国产农村妇女精品| 亚洲人成网站影音先锋播放| 一区二区三区丝袜| 香蕉成人啪国产精品视频综合网| 亚洲成年人影院| 免费精品视频最新在线| 精品一区二区三区免费| 国产成人亚洲综合a∨猫咪| 成人动漫中文字幕| 欧美在线免费| 亚洲一级一区| 亚洲欧美久久| 色狠狠综合天天综合综合| 欧美日韩综合色| 欧美电影免费观看高清完整版在| 久久精品视频网| 亚洲丝袜制服诱惑| 天堂蜜桃91精品| 国内久久精品视频| jizz一区二区|