jsp输出所有请求头的名称
Enumeration headernames=request.getHeaderNames();
while(headernames.hasMoreElements()){
String headername=headernames.nextElement();out.println(headername+"-->"+request.getHeader(headername)+"");}
out.println("");
--------------------------------------------------------------------------------------------------------------------------------------------
作者:Honey_Badger —— 觉得这文章好,点一下左下角
出处:http://tk55.cnblogs.com/
posted on 2017-03-27 16:57 Honey_Badger 阅读(601) 评论(0) 编辑 收藏 举报