SyntaxFix
Write A Post
Hire A Developer
Questions
Header fields are not copied to subsequent requests. You should use either cookie for this (addCookie method) or store "REMOTE_USER" in session (which you can obtain with getSession method).