I fixed the other error message it was coming from internet provider. On E62 i am trying to access internet and I am having trouble. here is the code;
It appears that I am getting "Native Error -5120" nowCode:try { HttpMgr.con = (HttpConnection) Connector.open(HttpMgr.sUrl, Connector.READ_WRITE); HttpMgr.con.setRequestMethod(HttpConnection.GET); HttpMgr.con.setRequestProperty("User-Agent",HttpMgr.sAgent); HttpMgr.con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); HttpMgr.con.setRequestProperty("Content-Length", String.valueOf(HttpMgr.sPostData.length())); HttpMgr.con.setRequestProperty("Cache-Control", "no-transform"); HttpMgr.con.setRequestProperty("Content-Language", HttpMgr.sLanguage); HttpMgr.con.setRequestProperty("Accept", "application/octet-stream"); HttpMgr.con.setRequestProperty("Connection", "close"); int rc = HttpMgr.con.getResponseCode(); if (rc != HttpConnection.HTTP_OK) { isErr = true; } else { HttpMgr.is = HttpMgr.con.openInputStream(); int ch; HttpMgr.sbResult.setLength(0); while ((ch = HttpMgr.is.read()) != -1) { mCPRAbc.self.debug(""+(char)ch); HttpMgr.sbResult.append((char)ch); // prevent a http loop if (HttpMgr.sbResult.toString().toLowerCase().indexOf("</body>") != -1) { break; } } } } catch(Exception e) { e.printStackTrace(); mCPRAbc.self.debug(e.getMessage()); isErr = true; }has anyone seen this? Do i have to sign midlet in order to do http on e61/e62?




has anyone seen this? Do i have to sign midlet in order to do http on e61/e62?
Reply With Quote

