index.jsp
Getting Header Data
Getting Header Data
basic.jsp
Reading Header Information
Reading Header Information
Here are the request headers and their data:
<% java.util.Enumeration names = request.getHeaderNames();
while(names.hasMoreElements()){
String name = (String) names.nextElement();
out.println(name + ":
" + request.getHeader(name) + "
");
}
%>