//获取所有的请求参数
Enumeration<String> paraNames=request.getParameterNames();
for(Enumeration<String> e=paraNames;e.hasMoreElements();){
String thisName=e.nextElement().toString();
String thisValue=request.getParameter(thisName);
System.out.println("param的key:"+thisName+"--------------param的value:"+thisValue);
}
//获取所有的头部参数
Enumeration<String> headerNames=request.getHeaderNames();
for(Enumeration<String> e=headerNames;e.hasMoreElements();){
String thisName=e.nextElement().toString();
String thisValue=request.getHeader(thisName);
System.out.println("header的key:"+thisName+"--------------header的value:"+thisValue);
}