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);
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.