Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding custom headers to a HTTP Request

843841Dec 12 2006 — edited Dec 12 2006
Folks,

I'm wondering if it is possible to add custom headers to a HttpRquest. In other words is it possible add new headers to the HttpServletRequest. We have addHeader methods for Respones but not Requests. Servlet Filters dont seem to let u do it too.

I saw that the deprecated HttpRequestWrapper (catalina.jar) has addHeader methods, but I get casting issues. Is there any proper way to accomplish this ?

Thanks a bunch for your time n help folks..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2007
Added on Dec 12 2006
2 comments
408 views