zoukankan      html  css  js  c++  java
  • request

     

    <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>test</title>
    </head>

    <body>
    request method:<%=request.getMethod()%>
    <br>
    URI:<%=request.getRequestURI()%>
    <BR>
    PROTOCOL:<%=request.getProtocol()%>
    <BR>
    SERVLET PATH:<%=request.getServletPath()%>
    <br>
    path info:<%=request.getPathInfo()%>
    <br>
    path translated:<%=request.getPathTranslated()%>
    <br>
    query string:<%=request.getQueryString()%>
    <br>
    content length:<%=request.getContentLength()%>
    <br>
    content type:<%=request.getContentType()%>
    <br>
    server name:<%=request.getServerName()%>
    <br>
    server port:<%=request.getServerPort()%>
    <br>
    romote user:<%=request.getRemoteUser()%>
    <br>
    remote address:<%=request.getRemoteAddr()%>
    <br>
    remote host:<%=request.getRemoteHost()%>
    <br>
    authorization scheme:<%=request.getAuthType()%>
    <br>
    brower you are using:<%=request.getHeader("User-Agent")%>
    </body>
    </html>

  • 相关阅读:
    另一个博客
    友情链接&部分题目的密码
    知识点汇总
    一些模板的调试样例
    摘抄
    通过代理连接Microsoft Store和更新Windows系统
    模电复习
    Codeforces Round #583 F Employment
    杂感(三)
    杂感(二)
  • 原文地址:https://www.cnblogs.com/shihujiang/p/2396388.html
Copyright © 2011-2022 走看看