Hello all, and thanks in advance for the help! :)
>From my Struts Action, I am trying to forward to a new URL that uses
basic authentication. I have already Authenticated the user, and would
like to pass the user credentials to the webserver so that the
Authentication form will not 'pop up' . I have attempted to put in the
username:password in the authorization header, but this does not seem to
work as of yet.
This is what I have done so far:
BASE64Encoder encoder = new BASE64Encoder();
String header = "username" + ":" + "password";
String encodedHeader = encoder.encode(header.getBytes());
response.addHeader("Authorization", "Basic " + encodedHeader);
return (new ActionForward("my secured site", false));
Thanks Again!
Jules
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]