×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    3

    My J2me application not work properly in Nokia mobiles

    I am developing a j2me application in which I require to send some data to a server, using HTTP post method.
    Last edited by sjafarhussain; 2011-12-13 at 06:35.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: My J2me application not work properly in Nokia mobiles

    You can take a look at this example:

    http://www.developer.nokia.com/Commu...est_in_Java_ME

    A few things to consider is whether you are URL encoding the data you are posting or not. If the values of the variables sent, are non alphanumeric, you will have to URL-encode them.

    Also try to remove or change (if you are not already doing it) the content-type header to something like this:
    Code:
    	        connection.setRequestProperty("Content-Type","text/xml");
    	        connection.setRequestProperty("Connection", "close");
    One way to debug your problem, is to get the response code from the server by calling the getResponseCode() method on your http connection, in order to see what kind of problem the server encountered.
    Also compile your code with the appropriate Nokia SDK, in your case Nokia's 5th edition SDK.

Similar Threads

  1. Porting J2ME application across various Mobiles
    By pranav1504 in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2009-12-14, 05:55
  2. Replies: 0
    Last Post: 2006-07-02, 20:44
  3. How can i load J2ME jad and jar file in Nokia CDMA mobiles
    By mottaisami in forum Mobile Java General
    Replies: 4
    Last Post: 2006-02-14, 12:42
  4. Replies: 1
    Last Post: 2006-01-23, 11:52
  5. fopen don't work properly on Nokia 9210
    By Nokia_Archive in forum Symbian
    Replies: 2
    Last Post: 2002-05-29, 13:10

Posting Permissions

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