request方法

Posted 蔡昊

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了request方法相关的知识,希望对你有一定的参考价值。

Object o = null;	
o = request.getLocalAddr();System.out.println(o);	127.0.0.1
o = request.getLocalName();System.out.println(o);	vinci.ie.sogou.com
o = request.getLocalPort();System.out.println(o);	8080
o = request.getRemoteAddr();System.out.println(o);	127.0.0.1
o = request.getRemotePort();System.out.println(o);	65160
o = request.getRemoteHost();System.out.println(o);	127.0.0.1
o = request.getRemoteUser();System.out.println(o);	null
o = request.getRequestURI();System.out.println(o);	/su-www/getUserinfo.json
o = request.getRequestURL();System.out.println(o);	http://localhost:8080/su-www/getUserinfo.json
o = request.getServerName();System.out.println(o);	localhost
o = request.getServerPort();System.out.println(o);	8080
o = request.getServletPath();System.out.println(o);	/getUserinfo.json
o = request.getContextPath();System.out.println(o);	/su-www
o = request.getScheme();System.out.println(o);		http
o = request.getQueryString();System.out.println(o);	null

  

以上是关于request方法的主要内容,如果未能解决你的问题,请参考以下文章

django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法(转)(代码片段

C#-WebForm-★内置对象简介★Request-获取请求对象Response相应请求对象Session全局变量(私有)Cookie全局变量(私有)Application全局公共变量Vi(代码片段

request.getParameter讲解

推进学说代码片段

无法从JsonArray Request获取请求

Motan在服务provider端用于处理request的线程池