Copy Code code as follows:
Server Name
' Server Name ': server.machinename
"Server Domain": request.servervariables["SERVER_NAME"]
"Server Port": request.servervariables["Server_port"]
"Web Server Version": request.servervariables["Server_software"]//path
"Virtual Request Path": Request.filepath
"Physical Request Path": Request.PhysicalPath
"Virtual Application Root Path": Request.applicationpath
"Physical Application Root Path": request.physicalapplicationpath//platform
"Operating System installation Directory": environment.systemdirectory
". Net Version": Environment.Version.ToString ()
". Net Language": System.Globalization.CultureInfo.InstalledUICulture.EnglishName
"Server Current Time": DateTime.Now.ToString ()
"System Uptime": Timespan.frommilliseconds (Environment.tickcount). ToString ()
"Script Timeout": Timespan.fromseconds (Server.ScriptTimeout). ToString ()
Get Request Headers
Eg:connection,accept,accept-charset,accept-encoding,accept-language,user-agent ...
foreach (string key in Request.Headers.AllKeys)
{
Request.headers[key];
}
Get Server Variables
Eg:all_http,all_raw,path_info,url ...
foreach (string key in Request.ServerVariables.AllKeys)
{
Request.servervariables[key];
}