JSP里request变量列表

HttpSession session=request.getSession();
        out.println("协议: " + request.getProtocol() + "<br> ");
        out.println("协议: " + request.getScheme() + " <br>");
        out.println("服务器名: " + request.getServerName() + "<br> ");
        out.println("服务器端口: " + request.getServerPort() + " <br>");
        out.println("协议: " + request.getProtocol() + " <br>");
        out.println("服务器容器: " +
                    getServletConfig().getServletContext().getServerInfo() + "<br> ");
        out.println("主机地址: " + request.getRemoteAddr() + " <br>");
        out.println("远端主机地址: " + request.getRemoteHost() + "<br> ");
        out.println("编码: " + request.getCharacterEncoding() + " <br>");
        out.println("内容长度: " + request.getContentLength() + " <br>");
        out.println("内容类型: " + request.getContentType() + " <br>");
        out.println("类型: " + request.getAuthType() + " <br>");
        out.println("方法名: " + request.getMethod() + " <br>");
        out.println("路径信息: " + request.getPathInfo() + "<br> ");
        out.println("路径: " + request.getPathTranslated() + "<br> ");
        out.println("会话ID: " + request.getRequestedSessionId() + "<br> ");
        out.println("请求地址: " + request.getRequestURI() + " <br>");
        out.println("Servlet的路径: " + request.getServletPath() + "<br> ");
        out.println("主机: " + request.getHeader("Host") + " <br>");
        out.println("地区语言: " + request.getHeader("Accept-Language") + "<br> ");
        out.println("语言编码 : " + request.getHeader("Accept-Encoding") + " <br>");
        out.println("代理信息 : " + request.getHeader("User-Agent") + " <br>");
        out.println("连接 : " + request.getHeader("Connection") + " <br>");
        out.println("Cookie ID: " + request.getHeader("Cookie") + " <br>");
        out.println("创建会话时间 : " + session.getCreationTime() + " <br>");
        out.println("最后创建会话时间 : " + session.getLastAccessedTime() + "<br> ");

你可能感兴趣的:(java,request)