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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM