安卓 posturl https

标签 android post https webview

您好,我需要使用此方法,但出现白屏。如果我使用 http 而不是 https 它工作正常,但为什么呢?我需要 https :(

%%%%%% 有效 %%%%%%

String postData = "username=user&password=pass";
String url = "http://www.ilias.de/docu/login.php";
webView.postUrl(url, EncodingUtils.getBytes(postData, "base64"));

%%%%% 不起作用

String postData = "username=user&password=pass";
String url = "https://www.ilias.de/docu/login.php";
webView.postUrl(url, EncodingUtils.getBytes(postData, "base64"));

最佳答案

你检查过这个tutorial了吗?要答案吗?

关于安卓 posturl https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7829993/

相关文章:

php - 如何根据if语句指示一个html文件处理不同的php文件

HTTP、HTTPS、共享 SSL 和 SEO

ubuntu - Nginx 重定向 https ://www to https://

Android空白布局出现在背景图片之前

android - 如何从 gradle 任务中获取 flavor 名称

android - 对android运行时权限感到困惑

.htaccess - HTTPS 与 HTTP 缓存 Javascript 文件?

android - Gradle 7.2 : How to apply a custom Gradle SETTINGS plugin?

php - 来自 PHP/MySQL 的 Facebook API 日报

angular - JSON 输入意外结束 Angular 2(4) http get 请求