JavaWeb学习篇之----容器Response详解
http://blog.csdn.net/jiangwei0910410003/article/details/22886847
获得所有请求头名称和头信息
java.util.Enumeration names = request.getHeaderNames();System.out.println("===================================================================");while(names.hasMoreElements()){String name = (String) names.nextElement();System.out.println(name + ":" + request.getHeader(name));}System.out.println("now service sessionid :"+session.getId());System.out.println("===================================================================");
转载于:https://blog.51cto.com/4259297/1673305