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!

Removing Request Headers & Cookies from HttpServletRequest

843840Mar 6 2002 — edited Mar 11 2002
I am trying to filter out (delete) some Request Headers and Cookies out of HttpServletRequest in one servlet, before forwarding the HttpServletRequest object to another servlet for processing.

I can easily get these i.e. "req.getHeader(name)". However I can't seem to find API's to set or delete request headers and cookies.

Does anybody know a technique I can use to do this?
Why aren't there API's to do such things as set and delete?

Thanks,
Art
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2002
Added on Mar 6 2002
7 comments
2,638 views