<% @ Page language = "java" contentType = "text/html; charset = UTF-8" PageEncoding = "UTF-8" %> Request <% Request. setCharacterEncoding ("UTF-8 "); %> <% = "Transfer Method:" + request. getMethod () %>
<% = "Character encoding method:" + request. getCharacterEncoding () %>
<% = "Protocol used:" + request. getProtocol () %>
<% = "Client address:" + request. getRequestURI () %>
<% = "Client address:" + request. getRequestURL () %>
<% = "Client IP Address:" + request. getRemoteAddr () %>
<% = "Get server port:" + request. getServerPort () %>
<% = "Get server name:" + request. getServerName () %>
<% = "Get host name:" + request. getRemoteHost () %>
<% = "Obtain the script file path:" + request. getServletPath () %>
<% = "Get protocol header information:" + request. getHeader ("host") %>
<% = "Get protocol header information:" + request. getHeader ("user-agent") %>
<% = "Get protocol header information:" + request. getHeader ("accept-language") %>
|