<%@ Page Language="C#" %>
<html>
<head>
    <title>Show all ASP Server Variables</title>
</head>
<body>

    <h1>List of all ASP Request.ServerVariables</h1>
    
    <table border="1" cellspacing="0" cellpadding="2">
        <tr>
            <td>
                <b>Server Variable</b>
            </td>
            <td>
                <b>Value</b>
            </td>
        </tr>
        <% foreach( string name in Request.ServerVariables){ %>
        <tr>
            <td>
                <%= name %>
            </td>
            <td>
                <%= Request.ServerVariables[name] %>
            </td>
        </tr>
        <% } %>
    </table>
    
    <h1>Other Request Object Infos</h1>

    <table border="1" cellspacing="0" cellpadding="2">
        <tr>
            <td>
                <b>Request Object</b>
            </td>
            <td>
                <b>Value</b>
            </td>
        </tr>
        <tr>
            <td>
                ApplicationPath
            </td>
            <td>
                <%= Request.ApplicationPath %>
            </td>
        </tr>
        <tr>
            <td>
                AppRelativeCurrentExecutionFilePath
            </td>
            <td>
                <%= Request.AppRelativeCurrentExecutionFilePath %>
            </td>
        </tr>
        <tr>
            <td>
                CurrentExecutionFilePath
            </td>
            <td>
                <%= Request.CurrentExecutionFilePath %>
            </td>
        </tr>
        <tr>
            <td>
                FilePath
            </td>
            <td>
                <%= Request.FilePath %>
            </td>
        </tr>
        <tr>
            <td>
                IsLocal
            </td>
            <td>
                <%= Request.IsLocal %>
            </td>
        </tr>
        <tr>
            <td>
                Path
            </td>
            <td>
                <%= Request.Path %>
            </td>
        </tr>
        <tr>
            <td>
                PathInfo
            </td>
            <td>
                <%= Request.PathInfo %>
            </td>
        </tr>
        <tr>
            <td>
                PhysicalApplicationPath
            </td>
            <td>
                <%= Request.PhysicalApplicationPath %>
            </td>
        </tr>
        <tr>
            <td>
                PhysicalPath
            </td>
            <td>
                <%= Request.PhysicalPath %>
            </td>
        </tr>
        <tr>
            <td>
                RawUrl
            </td>
            <td>
                <%= Request.RawUrl %>
            </td>
        </tr>
        <tr>
            <td>
                Url
            </td>
            <td>
                <%= Request.Url %>
            </td>
        </tr>
        <tr>
            <td>
                UrlReferrer
            </td>
            <td>
                <%= Request.UrlReferrer %>
            </td>
        </tr>
    </table>

<h1>Browser Caps</h1>

ServerVariables["http_user_agent"]:<br />
 <%= Request.ServerVariables["http_user_agent"] %>
<hr />

<h3><a href="http://slingfive.com/pages/code/browserCaps/">BrowserCaps</a> - Request.Browser List:</h3>

<ul>
    <li>Browser = <%=Request.Browser.Browser %></li>
    <li>Version = <%=Request.Browser.Version %></li>
    <li>MajorVersion = <%=Request.Browser.MajorVersion %></li>
    <li>MinorVersion = <%=Request.Browser.MinorVersion %></li>
    <li>Platform = <%=Request.Browser.Platform %></li>
    <li>EcmaScriptVersion = <%=Request.Browser.EcmaScriptVersion %></li>
    <li>Type = <%=Request.Browser.Type %></li>
    <li>TagWriter = <%=Request.Browser.TagWriter %></li>
</ul>
<hr />

<ul>
    <li>ActiveXControls = <%=Request.Browser.ActiveXControls %></li>
    <li>AOL = <%=Request.Browser.AOL %></li>
    <li>BackgroundSounds = <%=Request.Browser.BackgroundSounds %></li>
    <li>Beta = <%=Request.Browser.Beta %></li>
    <li>Browser = <%=Request.Browser.Browser %></li>
    <li>CDF = <%=Request.Browser.CDF %></li>
    <li>ClrVersion = <%=Request.Browser.ClrVersion %></li>
    <li>Cookies = <%=Request.Browser.Cookies %></li>
    <li>Crawler = <%=Request.Browser.Crawler %></li>
    <li>EcmaScriptVersion = <%=Request.Browser.EcmaScriptVersion %></li>
    <li>Frames = <%=Request.Browser.Frames %></li>
    <li>JavaApplets = <%=Request.Browser.JavaApplets %></li>
    <li>MajorVersion = <%=Request.Browser.MajorVersion %></li>
    <li>MinorVersion = <%=Request.Browser.MinorVersion %></li>
    <li>MSDomVersion = <%=Request.Browser.MSDomVersion %></li>
    <li>Platform = <%=Request.Browser.Platform %></li>
    <li>Tables = <%=Request.Browser.Tables %></li>
    <li>TagWriter = <%=Request.Browser.TagWriter %></li>
    <li>Type = <%=Request.Browser.Type %></li>
    <li>VBScript = <%=Request.Browser.VBScript %></li>
    <li>Version = <%=Request.Browser.Version %></li>
    <li>W3CDomVersion = <%=Request.Browser.W3CDomVersion %></li>
    <li>Win16 = <%=Request.Browser.Win16 %></li>
    <li>Win32 = <%=Request.Browser.Win32 %></li>
</ul>

</body>
</html>