【发布时间】:2016-10-19 12:12:37
【问题描述】:
我使用 Phonegap 和 Jquery Mobile 开发了一个应用程序。由于某些原因,我还需要从 https 域获取数据。在 IOS 上一切正常,但在 Android 上我总是收到以下错误并且请求失败
06-17 17:16:33.890 6079-6154/de.sistecs.einlass E/chromium_net: external/chromium/net/socket/ssl_client_socket_openssl.cc:905:
[0617/171633:ERROR:ssl_client_socket_openssl.cc(905)] handshake failed; returned -1, SSL error code 1, net_error -107
这是一个简单的示例代码
$(document).on("pageinit", function (event, ui) {
$("#test").click(function () {
$.ajax({
type: "POST",
url: "https://test.sistecs.de/sismedia/test.php",
success: function (response) {
$("#testmsg").text(response);
}
});
});
});
我已经阅读了数百篇帖子,但没有找到解决问题的方法。 服务器https://test.sistecs.de/sismedia/test.php的证书有效。
有人可以帮我吗?
【问题讨论】:
标签: android jquery cordova ssl jquery-mobile