saimisei

几个常用Request.ServerVariables的中文解释!

本文件ip路径:<%="http://" & request.servervariables("server_name")& request.servervariables("script_name") %> <br/>
本机ip:<%=request.servervariables("remote_addr")%> <br/>
服务器名:<%=Request.ServerVariables("SERVER_NAME")%><br/>
服务器IP:<%=Request.ServerVariables("LOCAL_ADDR")%><br/>
服务器端口:<%=Request.ServerVariables("SERVER_PORT")%><br/>
服务器时间:<%=now%><br/>
IIS版本:<%=Request.ServerVariables("SERVER_SOFTWARE")%><br/>
脚本超时时间:<%=Server.ScriptTimeout%><br/>
本文件路径:<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%><br/>
服务器CPU数量:<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%><br/>
服务器解译引擎:<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %><br/>
服务器操作系统:<%=Request.ServerVariables("OS")%> <br/>
支持的文件类型:<%=Request.ServerVariables("HTTP_Accept")%> <br/>
访问的文件路径:<%=Request.ServerVariables("HTTP_url")%> <br/>
用户代理的信息:<%=Request.ServerVariables("HTTP_USER_AGENT")%> <br/>
-----------------------------------------------------------------------------------------------------
产生的如下:
本文件ip路径:http://127.0.0.124/WapNetSdk/CeShi.asp
本机ip:127.0.0.124
服务器名:127.0.0.124
服务器IP:127.0.0.124
服务器端口:80
服务器时间:2005-7-6 18:02:20
IIS版本:Microsoft-IIS/5.0
脚本超时时间:90
本文件路径:G:\HangYeYingYong\WapVb6Test\WapNetSdk\CeShi.asp
服务器CPU数量:1
服务器解译引擎:VBScript/5.6.7426
服务器操作系统:Windows_NT
支持的文件类型:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
访问的文件路径:/WapNetSdk/CeShi.asp
用户代理的信息:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2; (R1 1.3); .NET CLR 1.1.4322)

 

转摘http://qbar.qq.com/zw8q2z3t/2.htm
http://qbar.qq.com/zw8q2z3t/r/?2

posted on 2008-09-03 10:44  閑雲野鶴  阅读(418)  评论(0编辑  收藏  举报

导航