This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request.getHeaderNames()
 
Similar Threads
Access Headers
How to Find Client Information??
HTTP Protocol & Servlets
HTTPServletRequest
request.getHeader("Referer")