c# - WebBrowser is asking for credentials on every page -


i'm using web browser control , constructor of form hosts web browser control:

string user = "xxx"; string pass = "xxx"; string authhdr = "authorization: basic " + convert.tobase64string(encoding.ascii.getbytes(user + ":" + pass)) + "\r\n"; mybrowser.navigate("http://xxx.xxx.xxx/homepage", null, null, authhdr); 

browser opens first page (homepage, using mybrowser.navigate()) successfully, when click link on page asks me credentials again. there method or property setting credentials navigating actions?


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -