?
Solved

Response headers

Posted on 2004-04-27
1
Medium Priority
?
215 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
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This holiday season, we’re giving away the gift of knowledge—tech knowledge, that is. Keep reading to see what hacks, tips, and trends we have wrapped and waiting for you under the tree.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

807 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