I have used JMeter tool to observe the Response Data from the Servlet See the screen shot attached )
What i want to say is , It works the custom response headers will also be added .

Post.jpeg

Save India From Corruption - Anna Hazare.

Ulf Dittmer

Rancher

Posts: 42972

73

posted 6 years ago

1

and then do a response.SendRedirect(URL) to some other URL, will i be able to read this header value at that app?

No. The response headers are read by the client and then discarded. (Besides, they're response headers, and thus not part of a request.) You'll need to put any data you want to reach the final destination as URL parameters.