I am trying to use WebView.setHttpAuthUsernamePassword() to handle
basic HTTP authentication on displaying a web page. I wouldn't think
it's anything complicated but I cannot find any documentation on how
to use it, an example, etc.

I've tried what I would guess is the usage:

        webview = (WebView) findViewById(R.id.webview);
        webview.getSettings().setJavaScriptEnabled(true);
        webview.setHttpAuthUsernamePassword("www.foo.com","realm
text","joe","xyz123");
        webview.loadUrl("http://www.foo.com/index.html";);

but I can see from the web server logs that the authentication
information is not being sent. The client side (in the emulator) shows
only a blank (black) view. The same url loaded in the emulators
browser loads fine.

Any suggestions or pointers to examples on how to use this? Or an
alternative to handle the authentication information?

Thanks
--brian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to