proxi authentification
-
I want to open e web from my C# aplication but i need to autentificate with a proxi how can i do it
-
I want to open e web from my C# aplication but i need to autentificate with a proxi how can i do it
Assuming you're using
WebClient
and your proxy is using basic authentication, add the Proxy-Authenticate[^] field to the Headers collection.string base64 = Convert.ToBase64String(Encoding.ASCII.GetBytes(":"));
webClient.Headers.Add("Proxy-Authenticate", "Basic " + base64);Or, you can use the NetworkCredential class to do it for you. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
Assuming you're using
WebClient
and your proxy is using basic authentication, add the Proxy-Authenticate[^] field to the Headers collection.string base64 = Convert.ToBase64String(Encoding.ASCII.GetBytes(":"));
webClient.Headers.Add("Proxy-Authenticate", "Basic " + base64);Or, you can use the NetworkCredential class to do it for you. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
before anyting thanks for your reply and have a happy new year i was trying to understand what i was asking for and i couldnt understand a shit anyway i either understang anthing of what you answer me what i was trying to do was a web application that, using forms authentication authenticate users from a db and could even create new users i wish you could tell me how can i do the first thanks