|
Server Variables
You can access information about an IIS server using ASP script function Request.ServerVariables("VARIABLE"). The following code fragment demonstrates
for to obtain the server name. Due to secure concerns this page has been moved from acenetglobal.info to users area.
<%
'Example,
Dim output
output = Request.ServerVariables("SERVER_NAME")
Response.Write(output)
'outputs the value: www.acenetglobal.info
%>
|
|
Server Variable
|
Example output
|
|
ALL_HTTP
|
HTTP_ACCEPT:Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5
HTTP_CONNECTION:close
HTTP_HOST:www.acenetglobal.info
HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_PRAGMA:no-cache
HTTP_ACCEPT_ENCODING:gzip
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_CACHE_CONTROL:no-cache
|
|
ALL_RAW
|
Accept: Accept: application/xhtml+xml,text/html;q=0.9,text/plain; Accept-Language: en-us,en;q=0.5 Connection: close Host: www.acenetglobal.info User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html) Pragma: no-cache Accept-Encoding: gzip Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Cache-Control: no-cache
|
|
APPL_MD_PATH
|
/LM/W3SVC/147/Root
|
|
APPL_PHYSICAL_PATH
|
D:\virtualdomain\acenetglobal.com\help\
|
|
AUTH_PASSWORD
|
|
|
AUTH_TYPE
|
|
|
AUTH_USER
|
|
|
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
|
CGI/1.1
|
|
HTTPS
|
off
|
|
HTTPS_KEYSIZE
|
|
|
HTTPS_SECRETKEYSIZE
|
|
|
HTTPS_SERVER_ISSUER
|
|
|
HTTPS_SERVER_SUBJECT
|
|
|
INSTANCE_ID
|
147
|
|
INSTANCE_META_PATH
|
/LM/W3SVC/147
|
|
LOCAL_ADDR
|
202.83.84.39
|
|
LOGON_USER
|
|
|
PATH_INFO
|
/server-variables.asp
|
|
PATH_TRANSLATED
|
D:\virtualdomain\acenetglobal.com\help\server-variables.asp
|
|
QUERY_STRING
|
|
|
REMOTE_ADDR
|
38.103.63.60
|
|
REMOTE_HOST
|
38.103.63.60
|
|
REMOTE_USER
|
|
|
REQUEST_METHOD
|
GET
|
|
SCRIPT_NAME
|
/server-variables.asp
|
|
SERVER_NAME
|
www.acenetglobal.info
|
|
SERVER_PORT
|
80
|
|
SERVER_PORT_SECURE
|
0
|
|
SERVER_PROTOCOL
|
HTTP/1.1
|
|
SERVER_SOFTWARE
|
Microsoft-IIS/5.0
|
|
URL
|
/server-variables.asp
|
|
HTTP_ACCEPT
|
Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
|
|
HTTP_ACCEPT_LANGUAGE
|
en-us,en;q=0.5
|
|
HTTP_CONNECTION
|
close
|
|
HTTP_HOST
|
www.acenetglobal.info
|
|
HTTP_USER_AGENT
|
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
|
|
HTTP_PRAGMA
|
no-cache
|
|
HTTP_ACCEPT_ENCODING
|
gzip
|
|
HTTP_ACCEPT_CHARSET
|
ISO-8859-1,utf-8;q=0.7,*;q=0.7
|
|
HTTP_CACHE_CONTROL
|
no-cache
|
|
|