Server Variables

Development Team Montego Data Limited 
This article () shows Server Information.

  
ALL_HTTPHTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_ENCODING:x-gzip, gzip, deflate HTTP_HOST:www.montegodata.co.uk HTTP_USER_AGENT:CCBot/2.0 (http://commoncrawl.org/faq/) HTTP_X_REWRITE_URL:/Resources/server.aspx HTTP_X_ORIGINAL_URL:/Resources/server.aspx
ALL_RAWAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: x-gzip, gzip, deflate Host: www.montegodata.co.uk User-Agent: CCBot/2.0 (http://commoncrawl.org/faq/) X-REWRITE-URL: /Resources/server.aspx X-ORIGINAL-URL: /Resources/server.aspx
APPL_MD_PATH/LM/W3SVC/548/ROOT
APPL_PHYSICAL_PATHD:\Inetpub\vhosts\montegodata.co.uk\httpdocs\
CONTENT_LENGTH0
GATEWAY_INTERFACECGI/1.1
HTTPSoff
INSTANCE_ID548
INSTANCE_META_PATH/LM/W3SVC/548
LOCAL_ADDR109.203.122.2
PATH_INFO/Resources/server.aspx
PATH_TRANSLATEDD:\Inetpub\vhosts\montegodata.co.uk\httpdocs\Resources\server.aspx
REMOTE_ADDR54.80.158.127
REMOTE_HOST54.80.158.127
REMOTE_PORT36222
REQUEST_METHODGET
SCRIPT_NAME/Resources/server.aspx
SERVER_NAMEwww.montegodata.co.uk
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.0
SERVER_SOFTWAREMicrosoft-IIS/8.5
URL/Resources/server.aspx
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODINGx-gzip, gzip, deflate
HTTP_HOSTwww.montegodata.co.uk
HTTP_USER_AGENTCCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_X_REWRITE_URL/Resources/server.aspx
HTTP_X_ORIGINAL_URL/Resources/server.aspx
UserHostAddress54.80.158.127

Server Variables

<table border="1">
<%
IEnumerator en = Request.ServerVariables.Keys.GetEnumerator();
en.MoveNext();
foreach( string key in Request.ServerVariables.Keys)
{
    if (Request.ServerVariables[key].Trim().Length > 0)
    {
        Response.Write( string.Format("<tr><td><b>{0}</b></td><td>{1}</td></tr>",
                        key, Request.ServerVariables[key]));
    }
}
%>
</table>

<table border="1">
<%
for each name in Request.ServerVariables
    if len(trim( Request.ServerVariables(name) )) > 0 then
        Response.write( "<tr><td><b>"&name&":</b></td><td>" )
        Response.write( Request.ServerVariables(name) )
        Response.write( "</td></tr>" )
    end if
next
%>
</table>
In this asp based site simply iterating through ServerVariables reveals this information.
The aspx sample requires the IEnumerator workaround code as an error happens without it.
Wilmott Online Technical Forum For Derivative Experts