If you’ve ever wanted to know what kind of HTTP Request headers might be coming from a client or some intermediate proxy, here’s a simple JSP you can manually deploy to your JEE Web Application to see a list.

<head><title>Show HTTP Headers</title></head>  
<h3>HTTP Headers</h3>  
java.util.Enumeration e = request.getHeaderNames();  
while (e.hasMoreElements())  
String name = (String) e.nextElement();  
String value = (String) request.getHeader(name);  
out.println(name + ": " + value);