×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    3

    HTTP requests and character '^'.

    Hi,

    Does anyone know the curse behind the character '^'?

    For some strange reason http request:

    http://finance.yahoo.com/d/quotes.csv?s=MSFT+SUNW&f=sl1&e=.txt

    works fine and http request:

    http://finance.yahoo.com/d/quotes.csv?s=^DJI+^SPX&f=sl1&e=.txt

    fails to connect when running on the actual phone.

    These requests work without any problems in emulators and browsers.

    And it works when '^' is encoded (replaced by '%5E').

    Your help is much appreciated.
    Last edited by em2zeraw; 2003-11-12 at 07:56.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    And it works when '^' is encoded (replaced by '%5E').
    So encode it.

    shmoove

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    3

    HTTP requests and character '^'.

    I do encode it.

    But the point was: it works in the emulator and doesn't in the phone. Shouldn't it be consistent? Is there any reason other than 'bug' for it?

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    'bug' sounds just right.
    My main point was, with the amount of fragmentation and bugs there is in J2ME implementations, it's useless to bang your head against the wall just so you can do what you think should be done. Encoding the character works, and it will work on all the other platforms too, right? So just encode it and move on. I'm sure you'll have enough troubles up ahead, like we all do.

    Happy coding,

    shmoove

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    3

    'bug' sounds just right.

    Thanks for the reply.

    Happy coding around bugs,

    Em2Zeraw.

Posting Permissions

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