Decoding an HTTP Request : Request « JSP « Java Tutorial






<HTML>
    <HEAD>
        <TITLE>Decoding an HTTP Request</TITLE>
    </HEAD>
 
    <BODY>
        <H1> Request Information </H1>
        JSP request method: <%= request.getMethod() %>
        <BR>
        URL for the request: <%= request.getRequestURI() %>
        <BR>
        Protocol of the request: <%= request.getProtocol() %>
        <BR>
        Server name: <%= request.getServerName() %>
        <BR>
        Path: <%= request.getServletPath() %>
        <BR>
        Server port: <%= request.getServerPort() %>
        <BR>
        Remote address: <%= request.getRemoteAddr() %>
        <BR>
        Remote host: <%= request.getRemoteHost() %>
        <BR>
        Locale: <%= request.getLocale() %>
        <BR>
        User agent: <%= request.getHeader("User-Agent") %>
    </BODY>
</HTML>








23.34.Request
23.34.1.Get HttpServletRequest
23.34.2.Reference Http Servlet Request in Bean
23.34.3.Put Request Header Name and Value to TreeMap
23.34.4.Get Parameter Name and Value from TreeMap
23.34.5.Get Servlet Request
23.34.6.Decoding an HTTP Request
23.34.7.Retrieving the Original URI