Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    6

    http connection fails with nokia emulator, succeeds with SUN emulator

    I make a http connection a servlet deployed on the localhost. Everything goes well with the SUN emulator : http code = 200, the available data from the DataInputStream is good, and the byte array received is the good one.
    With Nokia emulator, the http code is still 200 OK, but the available data is 0 ans of course no data is received ... (using the same Jad/Jar couple as you expect).
    Help !

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    3

    Re: http connection fails with nokia emulator, succeeds with SUN emulator

    I've the same problem. How I can resolve it? Thanks a lot Nello

  3. #3
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: http connection fails with nokia emulator, succeeds with SUN emulator

    Hi Aniello.Cozzolino! Welcome to Nokia Developer Discussion Baords!!

    Please let us know which Nokia emulator are you using, so that we could give you more tips.

    Regards
    Gopal

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: http connection fails with nokia emulator, succeeds with SUN emulator

    Just a guess: do you set Content-Length header for your server response? (its lack happened to cause similar issues on some S60 phones)

    Pit

  5. #5
    Registered User
    Join Date
    Jun 2008
    Posts
    3

    Re: http connection fails with nokia emulator, succeeds with SUN emulator

    why on a site ( for Example the www.corriere.it) the conn.getLength() is -1?

Posting Permissions

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