×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    9

    Http Connection Is not Working in Mobile

    hai


    Hai My Application is Working fine under Nokia Emulator 6230i , when i install the application in Nokia 6230i mobile , the network connections are not working , the url using in my application is http://www.ravindra-e-library.com:80...et?value=names when i type the same url in browser of the mobile , i am getting the response, but its not working form my application


    the code i am using here is

    HttpConnection sc = null;
    InputStream in = null;
    try {
    sc = (HttpConnection)Connector.open(url);
    in = sc.openInputStream();
    int length = 1000;
    byte[] raw = new byte[length];
    int readLength = in.read(raw);
    String message = new String(raw, 0, readLength);
    data=message;
    }
    catch (Exception e)
    {
    System.out.println("Exception: "+e.toString());
    }
    finally
    {
    if (in != null)
    {
    try
    {
    in.close();
    }
    catch (IOException ioe) {}
    }
    if (sc != null)
    {
    try
    {
    sc.close();
    }
    catch(IOException ioe)
    {
    }
    }
    }


    please help me regading this i dont know whats wrong with this

    ravi varma
    Sunsilica Solutions Pvt Ltd.

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Http Connection Is not Working in Mobile

    Hi,

    Please go with this thread
    http://discussion.forum.nokia.com/fo...ad.php?t=83251


    Wang

Similar Threads

  1. Another HTTP connection problem
    By issw in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2006-10-04, 16:36
  2. Close HTTP Connection bug ???
    By cars2004 in forum Mobile Java General
    Replies: 11
    Last Post: 2006-08-26, 01:35
  3. Http Connection
    By jaceline in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-09, 16:53
  4. 6820 http connection issue
    By jennydeng in forum Mobile Java General
    Replies: 0
    Last Post: 2004-09-30, 03:44
  5. Replies: 0
    Last Post: 2002-09-19, 11:45

Posting Permissions

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