Tag Archives: http

HTTP Header info.

Enumeration headers = request.getHeaderNames();
while(headers.hasMoreElements()){
    String headerName = (String)headers.nextElement();
    String value = request.getHeader(headerName);
    System.out.println("headerName:"+headerName+","+value);
}