HTTP long polling

Version 1
    This document was generated from CDN thread

    Created by: Abhi Gupta on 08-01-2013 11:45:51 AM
    Hello,
     
    Does the 7925G support HTTP long polling? We are trying to reformat a webpage to display on the phone browser and the webpage requires HTTP long polling

    Subject: RE: HTTP long polling
    Replied by: David Staudt on 08-01-2013 12:30:57 PM
    Can you provide a few more details about the specific implementation you are looking to build?

    If you are referring to the XML services display, this simply formats/displays specific XML documents - there is no scripting or other 'dynamic' capability, beyond refreshing the entire page via Refresh header.

    If you are talking about using the Java midlet capabilities, please let us know which API components you are looking to use, and what you require from 'long poll' functionality.  It should be possible to use the midlet HTTP request object to call a URL, providing a lengthy timeout to wait for the server to respond, i.e. the Ajax/long-poll pattern.

    Subject: RE: HTTP long polling
    Replied by: Peter Livingston on 09-01-2013 10:42:11 AM
    Hi Dave,

    let me respond on Abhi's behalf...

    We have an existing web application created by a vendor which runs on safari on an iPhone.  We were thinking of deploying the same web application on the 7925G however that would require http long polling support in the browser.  Sounds like the 7925G browser does not.

    We have also been looking at the java MIDlet approach, and it sounds like that is the best option in this case.

    Thanks for your help,

    Peter

    Subject: Re: New Message from Peter Livingston in Java MIDlet API (JMAPI) - Technica
    Replied by: Trevor Rowe on 09-01-2013 10:56:09 AM
    On 09/01/2013 16:46, Cisco Developer Community Forums wrote:
    > Peter Livingston has created a new message in the forum "Technical
    > Discussion":
    > -------------------------------------------------------------- Hi Dave,
    >
    > let me respond on Abhi's behalf...
    >
    > We have an existing web application created by a vendor which runs on
    > safari on an iPhone. We were thinking of deploying the same web
    > application on the 7925G however that would require http long polling
    > support in the browser. Sounds like the 7925G browser does not.
    >
    > We have also been looking at the java MIDlet approach, and it sounds
    > like that is the best option in this case.
    >
    > Thanks for your help,
    >
    > Peter
    > --
    > To respond to this post, please click the following link:
    > http://developer.cisco.com/web/jmapi/forums/-/message_boards/view_message/10084606
    > or simply reply to this email.

    For what it's worth....

    We've hit a problem using long polling in a midlet, works ok in the
    emualtor but on the device it blocks and causes the UI to freeze - we
    asked for a fixed and was told it would be solved but we were never
    given a fix

    We ended up making a request once every 10 seconds in a background
    thread and waited for zero seconds on the server - not as good but it's
    the best we could get

    Hope this helps

    Trev

    Subject: RE: Re: New Message from Peter Livingston in Java MIDlet API (JMAPI) - Tech
    Replied by: David Staudt on 09-01-2013 11:08:43 AM
    Sounds like known issue: CSCtz35941 - Midlet: HttpConnection request blocks UI input
    This should be resolved in later firmware, starting with 1.4(3)SR1