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