I need to open an URL in a C# program with user credential. I tried to use Winform WebBrowser
like this:
string user = "user";
string pass = "pass";
string authHdr = "Authorization: Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(user + ":" + pass)) + "\r\n";
webBrowser1.Navigate("http://example.com/userProfile", null, null, authHdr);
And it works fine. However, winform WebBrowser window is not as user friendly as browsers like IE, Fireworks, Chrome.
So I am wondering is there any way to open the URL in default browser with basic authorization. Look for any ideas. Thanks!!!