2015-02-26 13:16

[Java] 列出 HttpServletRequest header

Enumeration<String> names = request.getHeaderNames();

for (String name : Collections.list(names)) {
    System.out.println(name + " : " + request.getHeader(name));
}

0 回應: