JSP built-in Object request Method, jsp built-in request
JSP built-in Object request Method
Obtain the parameter: request. getParameter ();
Obtain multiple parameters: request. getParameterValues ();
Your local IP address is: request. getRemoteAddr ();
Your host name is: request. getRemoteHost ();
Your access port is: request. getRemotePort ();
The server address is request. getServerName ();
The port opened by the server is request. getServerPort ();
Request. getMethod ();
The request URL is: request. getRequestURI ();
The request protocol is: request. getProtocol ();
Request. getServletPath ();
Total length of customer request information: request. getContentLength ();
Request. getQueryString ();
User-agent value in the http header file: request. getHeader ("User-Agent ");
The value of accept in the http header file: request. getHeader ("accept ");
The value of the Host in the http header file: request. getHeader ("Host ");
The value of accep-encoding in the http header file: request. getHeader ("accept-encoding ");