Hi,
I got the same problem as:
http://discussion.forum.nokia.com/fo...ad.php?t=80653
I have a simple http connection application running on 6260. The browser can get access to the internet. After launching the application and choosing the connect command, it prompts to allow network access, respond Yes, then, it prompts to choose access point, choose the only one, then, the GPRS symbol appears, then gets the square around it but then just hangs there. No any response.
I can see the connection is listed in the connect->connection manager, the status is inactive, and no down load and up load, just hangs.
I traced the code, it hangs after "httpConnection.getResponseCode();"
The code is listed below:
httpConnection = (HttpConnection) javax.microedition.io.Connector.open(urlPath);
httpConnection.setRequestMethod(HttpConnection.POST);
// Send request
os = httpConnection.openOutputStream();
os.write(postData.getBytes(), 0, postData.getBytes().length);
int retCode = httpConnection.getResponseCode();
if (retCode != HttpConnection.HTTP_OK) {
throw new IOException("HTTP response code: " + retCode);
}
I tried many ways found from the forum, like, using DataOutputStream, using GET, just not working.
Any idea?
Thanks!

Reply With Quote

