zoukankan      html  css  js  c++  java
  • ASP中常用的服务器检测源代码

    在写ASP网页时常用的检测代码,还是十分实用的!

    服务器现在时间:
    <% =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")%>

    访问者浏览器版本及系统:
    <%=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")%>

    传输协议:
    <%=Request.ServerVariables("SERVER_PROTOCOL")%>

  • 相关阅读:
    Java判断一个字符是数字或字母
    java数组和字符串相互转换
    java 字符串截取的三种方法
    Templates && Algorithms
    挖坑——未完成题目列表QwQ
    作业_2018.08.25
    BZOJ1008 [HNOI2008]越狱 (快速幂,组合)
    UR #3 核聚变反应强度( gcd )
    A Super Hero
    NOIP2015 pj
  • 原文地址:https://www.cnblogs.com/top5/p/2703110.html
Copyright © 2011-2022 走看看