webfrom1.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="work004.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Request</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1">
            <tr>
                <td>Requset</td>
                <td></td>
            </tr>
            <tr>
                <td>ApplicationPath网站路径</td>
                <td><%=Request.ApplicationPath%></td>
            </tr>
            <tr>
                <td>ConentEncoding网页编码</td>
                <td><%= Request.ContentEncoding  %></td>
            </tr>
            <tr>
                <td>Cookies个数</td>
                <td><%= Request.Cookies.Count%></td>
            </tr>
            <tr>
                <td>QueryString个数</td>
                <td><%= Request.QueryString.Count%></td>
            </tr>
            <tr>
                <td>UrlReferer上一请求页面</td>
                <td><%= Request.UrlReferrer %></td>
            </tr>
            <tr>
                <td>Response</td>
                <td></td>
            </tr>
            <tr>
                <td>Charset字符集</td>
                <td><%= Response.Charset %></td>
            </tr>
            <tr>
                <td>CotentEncoding网页编码</td>
                <td><%= Response.ContentEncoding %></td>
            </tr>
            <tr>
                <td>Cookies个数</td>
                <td><%= Response.Cookies.Count%></td>
            </tr>
            <tr>
                <td>ContentType文档类型</td>
                <td><%= Response.ContentType%></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>