WebService執行個體-網域名稱查詢~

來源:互聯網
上載者:User
介面說明文檔:
http://whois.aspsir.com/whois.asmx?wsdl
  
程式碼:
<form name="form1" method="post" action="test.asp">
<table width="318" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="36"><div align="right">www.</div></td>
<td width="218"><input name="strDomain" type="text" id="strDomain" value="stefli.com" size="30" maxlength="30"></td>
<td width="42"><input type="submit" name="Submit" value="查詢"></td>
</tr>
</table>
</form>
<%
strDomain = Request.Form("strDomain")
strUrl = "http://whois.aspsir.com/whois.asmx/Lookup?strDomain=" & strDomain & ""
Set oXmlHttp = Server.CreateObject("Microsoft.XMLHTTP")
oXmlHttp.Open "GET", strUrl, False
oXmlHttp.Send()
If oXmlHttp.readyState <> 4 Then Response.Write Err.Description
strResult = bytes2BSTR(oXmlHttp.responseBody)
If Instr(strResult,"No match")<>0 Then
Response.Write "網域名稱[www." & strDomain & "]居然還沒有被註冊!"
Else
Response.Write "呵呵,來晚了一步!網域名稱已經被註冊~"
End If
Set oXmlHttp = Nothing
Function bytes2BSTR(vIn)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.