Hello Miles, > Can anyone give me some things to try. I can get it to work if I > specficly set the "Authorization" httpRequest header and use httpRequest > .getHeader(AUTHORIZATION_HEADER_NAME) in the servlet but I would like to > understand why setting the Credentials on the client doesn't work with > getRemoteUser() in my servlet.,
Authentication will only be performed if the server requires it (except preemtive authentication.) If access to your servlet is not restricted in the web.xml on the server, then there will be no authentication challenge from the server to the client, and HttpClient has no reason whatsoever to perform authentication. Hence, the servlet is accessed anonymously. For details, see the J2EE or Servlet specifications. Look for security related information in the deployment descriptor (web.xml). http://jcp.org/en/jsr/detail?id=154 http://java.sun.com/products/servlet/ http://java.sun.com/products/servlet/docs.html http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/rweb_relinks.html cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
