×

Discussion Board

Results 1 to 2 of 2

Thread: URL parameters

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

    URL parameters

    Hi, I have a problem with passing parameters between a midlet (on Nokia 6310i) and a servlet.

    The part of my midlet looks as follows:

    url="http://servlet_address?parA=A&parB=B&parC=C&parD=D";
    HttpConnection con = (HttpConnection) Connector.open(url);
    InputStream is = http.openInputStream();

    and this stream is empty.

    It works on the 6310i's emulator but it does not on the real phone (the phone does not create a WAP connection). It is really weird, because when I use this URL with 1 or 2 parameters, it is working.

    Can anybody help me?

    Thanks,

    Michal

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

    RE: URL parameters

    Make sure you encode the URL properly. See RFC 1738.

Posting Permissions

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