and then do a response.SendRedirect(URL) to some other URL, will i be able to read this header value at that app?
I've tried this with 2 dummy servlets in different apps but doesn't seem to be working. Am i getting something wrong here or am i trying something which is not right?
At the redirected URL, i retrieve the headers using request.getHeader(headerName);
I have used JMeter tool to observe the Response Data from the ServletSee the screen shot attached )
What i want to say is , It works the custom response headers will also be added .
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.
Ravi Kiran Va wrote:...
There's no redirection here, so the example is not relevant.
I am passing the data using query parameters but i was just wondering if there is a way to differentiate between a redirect and when someone accesses the app from the address bar directly.