wood burning stoves 2.0*
The moose likes Servlets and the fly likes request.getHeaderNames() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "request.getHeaderNames()" Watch "request.getHeaderNames()" New topic
Author

request.getHeaderNames()

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
Does request.getHeaderNames()get the custom headers also?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I'm not sure what you mean by "the custom headers".

That method returns an enumeration of all the headers in the request.
If you have a client that creates custom request headers, you should be able to read them just like any other headers.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: request.getHeaderNames()
 
Similar Threads
request.getHeader("Referer")
HTTPServletRequest
Access Headers
How to Find Client Information??
HTTP Protocol & Servlets