<input type="submit" name="Submit" value="提 交">
</div>
</form></td>
</tr>
<tr>
<td width="30%" height="32" bgcolor="#FFFFFF"> <div align="left">
<%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function bstr(vIn)
Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bstr = strReturn
End Function
Function GetURL(url)
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, false
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.Send
GetURL = .ResponseBody
End With
Set Retrieval = Nothing
GetURL=bstr(GetURL)
End Function
%>
<% domain= Request.QueryString("domain")
if domain<>"" then
if right(domain,2)="cn" then
TakenHTML = GetURL("http://dn.topbiz.cn/cgi-bin/getwhoisinfo?DomainName="&domain)
response.Write(TakenHTML)
else %>
<% TakenHTML = GetURL("http://www.samspade.org/t/whois?a="&domain&"&server=auto&_charset_=utf-8")
start = instr(takenHTML,"<pre>")
finish = instr(takenHTML,"</pre>")
takenHTML=mid(takenHTML,start,finish-start)
response.Write(TakenHTML)
%></pre>
</div></td>
</tr>
<% end if
else %>
请输入您要查询的域名
<% end if
%></td></tr>
</table>
</body>
</html>
# where can we get more info?
$moreinfo = FALSE;
for ( reset($moreinfolist) ; list($tail, $moreinfoname) = each($moreinfolist) ; )
if ( eregi("\\.$tail\$", $address) ) { // 比较域名后缀
$moreinfo = $moreinfoname; // 遇到匹配项就立即结束循环
break;
}