×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    6610 GPRS connection problems

    Hi - I am trying to receive binary data over a GPRS connection on a 6610 device. I regular GET request works. While this works on a 7650 and emulator it is hanging on this device. Are there existing problems with the GPRS connection on the 6610? Are there suggestions to resolving this? Can Nokia help? This is really important!

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    RE: 6610 GPRS connection problems

    Provide some code to investigate further...

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    RE: 6610 GPRS connection problems

    Below is a code snippet. The process is hanging while trying to get the input stream. I am returning binary data in the response. I also found that the cookie is not working. From similar posts on this forum is seems that the value is being truncated. Again, this code works fine on a 7650.

    HttpConnection mHttpConnection = (HttpConnection)Connector.open(mURL);
    mHttpConnection.setRequestProperty( "Connection", "close" );

    if (mSession != null)
    mHttpConnection.setRequestProperty("Cookie", mSession);

    // Set the request method to POST
    mHttpConnection.setRequestMethod(HttpConnection.POST);
    mHttpConnection.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded"
    mHttpConnection.setRequestProperty( "User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0" );
    mHttpConnection.setRequestProperty( "Content-Language", "en-US" );
    mHttpConnection.setRequestProperty( "Accept", "application/octet-stream" );
    mHttpConnection.setRequestProperty( "Content-Length", Integer.toString( postData.length ) );

    OutputStream os = mHttpConnection.openOutputStream();
    os.write( postData );
    os.close();

    InputStream in = mHttpConnection.openInputStream();

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    Nokia:Please verify and comments

    Hi MARAMM

    Does the URL consists of subdirectory?(eg: http://www.abc.com/abc/abc.txt) I faces similar problems when I try to get content from URL that consists of subdirectory, the program just hang that.

    The phone work fine on URL without any subdirectory...which is weired..

    I posted the problem several weeks ago, and ask Nokia to confirm is it a bug, and so far no response from them.

Posting Permissions

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