我正在开发一个小型J2ME应用程序,它将从我们大学的服务器上读取我们的成绩。使用桌面应用程序,很好,我可以做到,但在J2ME中,它总是给我这个错误,即使我使用像谷歌这样的知名服务,我仍然会得到同样的错误。
urlConn = (HttpsConnection) Connector.open("https://stars.bilkent.edu.tr/srs/ajax/login.php");
urlConn.setRequestMethod(HttpsConnection.POST);
urlConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
o = urlConn.openOutputStream();
// Sending my POST requests to server
input = urlConn.openDataInputStream();
在最后一行我总是得到上面提到的错误。我该怎么办呢?
答案 0 :(得分:0)
无论如何,问题在于J2ME模拟器,在手机上完美无缺。