request.getHeader不区分大小写

<!--查看输出信息-->
<%
System.out.println("Header....");
Enumeration<String> e = request.getHeaderNames();
String key;
while(e.hasMoreElements()){
key = e.nextElement();
System.out.println(key+"="+request.getHeader(key));
}
System.out.println("Attribute....");
e = request.getAttributeNames();
while(e.hasMoreElements()){
key = e.nextElement();
System.out.println(key+"="+request.getAttribute(key));
} System.out.println("Parameter....");
e = request.getParameterNames();
while(e.hasMoreElements()){
key = e.nextElement();
System.out.println(key+"="+request.getParameter(key));
}
%>

不知道这篇中判断大小写的是不是对的:

http://yhjhappy234.blog.163.com/blog/static/3163283220113995552337/

相关文章:http://lavafree.iteye.com/blog/1559183

上一篇:Unity3D 学习笔记


下一篇:第三组 通信一班 030 ACL总结