Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2013

    Post open a url with platformrequest or by httpconnection GET what's the diff

    I have to do a httprequest in background for a j2me application, till now i am using this.midletname.platformrequest(url), this request also does some redirects at server ends, but nonetheless my work finishes, the thing is this platformrequest opens up a dialog box asking user for permissions.

    I can do the same using httpconnection GET , just wanted to know if their is a big difference between both, or as i understand the platformrequest opens up the default browser and that's pretty much.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: open a url with platformrequest or by httpconnection GET what's the diff

    Yes, that is the difference: the platformRequest thing opens the browser, while HttpConnection gives you a connection to get or post the data yourself.

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK

    Re: open a url with platformrequest or by httpconnection GET what's the diff

    An HttpConnection will support only HTTP (and HTTPS), allows you options such as sending back cookies or POSTing data, and retrieves data back to your application including the response code, the headers, and the content data. You must then handle the received data, nothing will handle it for you.

    platformRequest() supports multiple protocols, but simply launches the appropriate application on the device to handle that URL (if there is one). That application will then request the URL and handle the response, but you have no control over this, and you will not see the received data in your application. On some devices, your application might have to terminate before the browser (or other application) can launch.

    Both will display a dialogue asking for permission.


Similar Threads

  1. Open file with MIDlet.platformRequest()
    By antonio.barone in forum Mobile Java General
    Replies: 9
    Last Post: 2011-01-28, 11:15
  2. Nokia 6212 platformRequest( ) to open a video
    By gbrownaccount in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2010-10-30, 20:43
  3. Replies: 2
    Last Post: 2009-12-27, 23:05
  4. platformRequest() to open FileBrowser
    By tknerr in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-06, 11:15
  5. Keep HttpConnection Open ?
    By mariusfahlbusch in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-02-04, 02:24

Posting Permissions

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