2015-02-26 13:16

[Java] 列出 HttpServletRequest header

  1. Enumeration<String> names = request.getHeaderNames(); 
  2.  
  3. for (String name : Collections.list(names)) { 
  4.    System.out.println(name + " : " + request.getHeader(name)); 
  5. } 

0 回應: