Android Question WebView

Jose Venura

New Member
Licensed User
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
 

Jose Venura

New Member
Licensed User
You need to implement the UserAndPasswordRequired event:
B4X:
Sub WebView1_UserAndPasswordRequired (Host As String, Realm As String) As String()
Return Array As String("username", "password")
End Sub
Thank you very much, it worked just fine.
 
Upvote 0
Top