?
Solved

Response headers

Posted on 2004-04-27
1
Medium Priority
?
212 Views
Last Modified: 2010-04-01
Is there any way to read response header names and their values as we have in case of request headers ?

Regards,

0
Comment
Question by:allahabad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
mark-b earned 400 total points
ID: 10932610
Nope, not generically (that I know of).  You can check for their existence:

res.containsHeader( header)

but you can't get the values.  One option I can think of is to use the underlining response implementation by the servlet engine (by casting)-- you might be able to get to them that way.  Another option is to create your own implementation of the http servlet response that implements HttpServletResponse and defers to the contained 'real' http servlet response.  In your implementation, the pertinent methods that are around the headers would capture the names and values and then pass them on the contained response.  Just an idea..

-Mark
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month9 days, 5 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question