Hello, I was wondering if any one knows how to send Authorization header to a servlet from a client that will include both password and username. Thank you.
posted 15 years ago
To place information into the http header of a clients request, you use the method in HttpServletResponse setHeader(String name, String value). After that when the client makes any subsquent requests to your site you can retrieve this same information using the method in HttpServletRequest getHeader(String name) which returns the String value that you placed in the header. Hope this helps