Redirect with authorization
I am trying to redirect users our internal web site to an external web site after they select the information they want. The external web site requires basic authorization that is transparent to the user. I am trying the following code but the authorization header is not being received by the external site. What is the work around for this?
byte[] authBytes = System.Text.Encoding.ASCII.GetBytes("username:password");
String authString = Convert.ToBase64String(authBytes);
Response.AddHeader("Authorization", "Basic " + authString);
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", "http://websitename.net/project.html");
|