Thanks Peter
I read some article like that
"Microsoft released a security patch that disables passing the credentials
in the url.."
I have tested and it is not working if i pass credentials thru URL.
Someone suggested to use the following,
Page.Response.AddHeader("AUTH_USER", "User")
Page.Response.AddHeader("AUTH_PASSWORD", "password")
Server.Transfer("default.aspx")
The above is also not working for the case
Server.Transfer("http://siteb/onlinedocs/webpage.aspx")
It will be helpful if you give me any other way to redirect to different
site using basic authentication.
Thanks
Suresh
"Peter Bromberg [C# MVP]" wrote:
Well, you redirect with Response.Redirect method. Depending on whether the
authentication is set up, you could do:
Response.Redirect("Http://username:password@othersite/otherpage.aspx");
-- Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"sureshpandi" wrote:
Hi
I am in a web site A. I want to redirect to a web site B with basic
authentication. HttpWebContext and WebRespose methods are downloading a site
page as html and this is not helping me. I dont want to get the HTML , i want
to redirect to the web site b with basic authentication.
I appreciate if some one helps me to solve this problem.
Thanks in advance.
Suresh