zoukankan      html  css  js  c++  java
  • 获取客户端信息

     foreach (string key in Request.ServerVariables.AllKeys)
    {
          Response.Write("key + ":" + Request.ServerVariables[key] + "<br/>");
    }

    ALL_HTTP:HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:zh-cn HTTP_HOST:localhost:2428 HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar) HTTP_UA_CPU:x86
    ALL_RAW:Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: zh-cn Host: localhost:2428 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar) UA-CPU: x86
    APPL_MD_PATH:
    APPL_PHYSICAL_PATH:D:\WebAppTest\WebAppTest\
    AUTH_TYPE:NTLM
    AUTH_USER:SOUFUN-0D1D798B\minhongbo
    AUTH_PASSWORD:
    LOGON_USER:SOUFUN-0D1D798B\minhongbo
    REMOTE_USER:SOUFUN-0D1D798B\minhongbo
    CERT_COOKIE:
    CERT_FLAGS:
    CERT_ISSUER:
    CERT_KEYSIZE:
    CERT_SECRETKEYSIZE:
    CERT_SERIALNUMBER:
    CERT_SERVER_ISSUER:
    CERT_SERVER_SUBJECT:
    CERT_SUBJECT:
    CONTENT_LENGTH:0
    CONTENT_TYPE:
    GATEWAY_INTERFACE:
    HTTPS:
    HTTPS_KEYSIZE:
    HTTPS_SECRETKEYSIZE:
    HTTPS_SERVER_ISSUER:
    HTTPS_SERVER_SUBJECT:
    INSTANCE_ID:
    INSTANCE_META_PATH:
    LOCAL_ADDR:127.0.0.1
    PATH_INFO:/ResponseTest.aspx
    PATH_TRANSLATED:D:\WebAppTest\WebAppTest\ResponseTest.aspx
    QUERY_STRING:
    REMOTE_ADDR:127.0.0.1
    REMOTE_HOST:127.0.0.1
    REMOTE_PORT:
    REQUEST_METHOD:GET
    SCRIPT_NAME:/ResponseTest.aspx
    SERVER_NAME:localhost
    SERVER_PORT:2428
    SERVER_PORT_SECURE:0
    SERVER_PROTOCOL:HTTP/1.1
    SERVER_SOFTWARE:
    URL:/ResponseTest.aspx
    HTTP_CONNECTION:Keep-Alive
    HTTP_ACCEPT:*/*
    HTTP_ACCEPT_ENCODING:gzip, deflate
    HTTP_ACCEPT_LANGUAGE:zh-cn
    HTTP_HOST:localhost:2428
    HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar)
    HTTP_UA_CPU:x86

  • 相关阅读:
    超实用的 Nginx 极简教程,覆盖了常用场景(转)
    阿里云Redis开发规范(转)
    什么是 AQS ?
    缓存穿透、缓存并发、缓存失效之思路变迁(转)
    看不懂JDK8的流操作?5分钟带你入门(转)
    Redis 分布式锁的正确实现方式(转)
    urllib-Proxy
    基本urllib库
    Windows DOS 命令(持续更新...)
    java 位运算符
  • 原文地址:https://www.cnblogs.com/xueyuan299/p/1757317.html
Copyright © 2011-2022 走看看