ASP中常用的服務器檢測源代碼

2010-08-28 10:54:03來源:西部e網(wǎng)作者:

在寫ASP網(wǎng)頁時常用的檢測代碼,還是十分實用的!

服務器現(xiàn)在時間:
<% =now %>

服務器CPU型號:
<%=Request.ServerVariables("HTTP_UA_CPU")%>

當前分辨率:
<% =Request.ServerVariables("HTTP_UA_PIXELS")%>

可顯示顏色:
<%=Request.ServerVariables("HTTP_UA_COLOR")%>

Server地址:
<%=Request.ServerVariables("SERVER_NAME")%>

服務器接受語言:
<%=Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")%>

訪問者IP:
<%=Request.ServerVariables("REMOTE_ADDR")%>

訪問者瀏覽器版本及系統(tǒng):
<%=Request.ServerVariables("HTTP_USER_AGENT")%>

服務器可接受文件:
<%=Request.ServerVariables("HTTP_ACCEPT")%>

WEB服務器軟件及版本信息:
<%=Request.ServerVariables("SERVER_SOFTWARE")%>

路由端口:
<%=Request.ServerVariables("REMOTE_PORT")%>

服務器http端口:
<%=Request.ServerVariables("LOCAL_PORT")%>

WEB目錄名稱:
<%=Request.ServerVariables("APPL_PHYSICAL_PATH")%>

當前WEB頁位置:
<%=Request.ServerVariables("PATH_TRANSLATED")%>

請求方式:
<%=Request.ServerVariables("REQUEST_METHOD")%>

傳輸協(xié)議:
<%=Request.ServerVariables("SERVER_PROTOCOL")%>

關鍵詞:ASP