An application I'm working with is going to be receiving information from a security and authentication system by way of a custom HTTP header. My application will read the data in that header and use it to retrieve data
In order to test my code, I need to create a mockup that will mimic the security system's actions, i.e. I need to set an HTTP header that will be read by my application.
I tried using the HttpServletResponse.setHeader(...) method in conjunction with calls to sendRedirect, forward and include, but nothing works.
Is there a way that I can set a custom HTTP header within a servlet/JSP that can be read by another servlet/JSP?
Thanks in advance!