Jose Venura New Member Licensed User Mar 6, 2017 #1 How to send web server's folder or directory credentials (UserName and Password) I need to view a page http://mydomain.com/sub, but this site is under folder password protection, a normal browser will ask for username and password and show the site, but in a tutorial practive I just get an authentication error. thanks
How to send web server's folder or directory credentials (UserName and Password) I need to view a page http://mydomain.com/sub, but this site is under folder password protection, a normal browser will ask for username and password and show the site, but in a tutorial practive I just get an authentication error. thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2017 #2 You need to implement the UserAndPasswordRequired event: Code: Copy Sub WebView1_UserAndPasswordRequired (Host As String, Realm As String) As String() Return Array As String("username", "password") End Sub Upvote 0
You need to implement the UserAndPasswordRequired event: Code: Copy Sub WebView1_UserAndPasswordRequired (Host As String, Realm As String) As String() Return Array As String("username", "password") End Sub
Jose Venura New Member Licensed User Mar 7, 2017 #3 Erel said: You need to implement the UserAndPasswordRequired event: Code: Copy Sub WebView1_UserAndPasswordRequired (Host As String, Realm As String) As String() Return Array As String("username", "password") End Sub Click to expand... Thank you very much, it worked just fine. Upvote 0
Erel said: You need to implement the UserAndPasswordRequired event: Code: Copy Sub WebView1_UserAndPasswordRequired (Host As String, Realm As String) As String() Return Array As String("username", "password") End Sub Click to expand... Thank you very much, it worked just fine.