站內搜尋:Yahoo搜尋如果沒有給完整的網址,請在站內再搜尋一次!

2016-05-22

classic asp Request.ServerVariables 取得伺服器環境變數的值

  1. Request.ServerVariables["ALL_HTTP"] 
  2. Request.ServerVariables["ALL_RAW"] 
  3. Request.ServerVariables["APPL_MD_PATH"] 
  4. Request.ServerVariables["APPL_PHYSICAL_PATH"] 
  5. Request.ServerVariables["AUTH_PASSWORD"] 
  6. Request.ServerVariables["AUTH_TYPE"]
  7. Request.ServerVariables["AUTH_USER"]
  8. Request.ServerVariables["CERT_COOKIE"]
  9. Request.ServerVariables["CERT_FLAGS"] : 如有驗證 BIT0=1, 驗證無效 BIT1=1
  10. Request.ServerVariables["CERT_ISSUER"]
  11. Request.ServerVariables["CERT_KEYSIZE"]
  12. Request.ServerVariables["CERT_SECRETKEYSIZE"]
  13. Request.ServerVariables["CERT_SERIALNUMBER"]
  14. Request.ServerVariables["CERT_SERVER_ISSUER"]
  15. Request.ServerVariables["CERT_SERVER_SUBJECT"]
  16. Request.ServerVariables["CERT_SUBJECT"]
  17. Request.ServerVariables["CONTENT_LENGTH"]
  18. Request.ServerVariables["CONTENT_TYPE"]
  19. Request.ServerVariables["GATEWAY_INTERFACE"]
  20. Request.ServerVariables["HTTP_HEADERNAME"]
  21. Request.ServerVariables["HTTPS"] : 如果使用SSL送出請求回傳ON, 非SSL回傳OFF
  22. Request.ServerVariables["HTTPS_KEYSIZE"]
  23. Request.ServerVariables["HTTPS_SECRETKEYSIZE"]
  24. Request.ServerVariables["HTTPS_SERVER_ISSUER"]
  25. Request.ServerVariables["HTTPS_SERVER_SUBJECT"]
  26. Request.ServerVariables["INSTANCE_ID"] :  IIS instance ID
  27. Request.ServerVariables["INSTANCE_META_PATH"]
  28. Request.ServerVariables["LOCAL_ADDR"]
  29. Request.ServerVariables["LOGON_USER"] : Windows的登入帳號
  30. Request.ServerVariables["PATH_INFO"]
  31. Request.ServerVariables["PATH_TRANSLATED"]
  32. Request.ServerVariables["QUERY_STRING"] : HTTP 請求網址中問號 (?) 後面的參數
  33. Request.ServerVariables["REMOTE_ADDR"]
  34. Request.ServerVariables["REMOTE_HOST"]
  35. Request.ServerVariables["REMOTE_USER"]
  36. Request.ServerVariables["REQUEST_METHOD"]
  37. Request.ServerVariables["SCRIPT_NAME"]
  38. Request.ServerVariables["SERVER_NAME"]
  39. Request.ServerVariables["SERVER_PORT"]
  40. Request.ServerVariables["SERVER_PORT_SECURE"] :  0 or 1
  41. Request.ServerVariables["SERVER_PROTOCOL"]
  42. Request.ServerVariables["SERVER_SOFTWARE"]
  43. Request.ServerVariables["URL"]
ASP 解析取得 ServerVariables 變數值(環境變數)的方式
<%
For Each x in Request.ServerVariables
  Response.Write(x & "<br />")
Next
%>

沒有留言:

張貼留言