×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2006
    Location
    Ottawa, Canada
    Posts
    3

    http connection just hangs

    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!
    Last edited by fayesoft; 2006-06-13 at 13:47.
    Luke

  2. #2
    Registered User
    Join Date
    Jun 2006
    Location
    Ottawa, Canada
    Posts
    3

    Re: http connection just hangs

    any idea? no?
    Last edited by fayesoft; 2006-06-13 at 13:48.
    Luke

Similar Threads

  1. Replies: 2
    Last Post: 2006-10-06, 17:24
  2. Http Connection
    By jaceline in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-09, 16:53
  3. Close HTTp Connection in N6230i
    By cars2004 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-06-24, 10:46
  4. Close HTTp Connection in N6230i
    By cars2004 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-06-24, 09:29
  5. HTTP connection on 6310i, 7650, 9210 and in sony-ericsson p800
    By mika1982 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2003-07-24, 16:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •