Printing All Headers 
(Continued)
"\n" +
"
\n" +
"
Header NameHeader Value");
Enumeration headerNames = 
request.getHeaderNames()
;
while(headerNames.hasMoreElements()) {
String headerName = (String)headerNames.nextElement();
out.println("
" + headerName);
out.println("    
" +
request.getHeader(headerName)
);
}
out.println("
\n");
}
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
}
}
37
Servlets
www.corewebprogramming.com
Printing All Headers:
Netscape Result
38
Servlets
www.corewebprogramming.com
19




  

Home

About Services Network Support FAQ Order Contact
 

Servlet Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved