File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: request.getHeaderNames()
 
Similar Threads
request.getHeader("Referer")
HTTPServletRequest
Access Headers
How to Find Client Information??
HTTP Protocol & Servlets