Results 1 to 4 of 4

Thread: [Solved] - Form submission fails when using HTTPS

  1. #1

    Default [Solved] - Form submission fails when using HTTPS


    I'm testing sencha touch to write a web application for iOS and Android mobiles. The web server where the application is deployed runs under tomcat 6 with HTTPS protocol activated.

    So i'm encountering a very special problem on my iPhone 4 : when a form is submitted via https everything works fine. But if I close Safari and open it again, the form submission will fail and always return a http status code 0.

    If I want to submit the form again, I have to clean Safari's cache.

    The same operation done but using http protocol won't cause any problem. I can quit and relaunch Safari without any problem.

    I made complementary tests using Chrome and Safari. Both work fine when using https protocol.

    It seems that https network cause Safari mobile and/or sencha crash ...

    Has someone encountered a similar problem ? Have you any idea ?

    Thanks for your help.

    Best regards.
    Last edited by Yvanlefou; 15 Jan 2012 at 5:37 AM. Reason: Workaround found

  2. #2
    Sencha User Sameer Khan's Avatar
    Join Date
    Oct 2011
    Bangalore, India


    you r doing form submission right...Here which form u r using? i mean javascript dynamic form or sencha form submit...If u call form.submit() on dynamic javascript form, it will work fine...But if n/w is low then it fails bcz there is no exception handling on it...

    I want to know how u r doing form submission...
    Sameer Khan

  3. #3


    I'm using sencha touch Ext.form.FormPanel with ajax submission.

    The submit is trigerred by the submit method : myform.submit({method:'POST'});

    Thanks for your answer

  4. #4

    Default [Solved] - Form submission fails when using HTTPS

    I looked a bit why form submission didn't work when safari is relaunched. It's very strange : when the form is submitted, some TCP packets are exchanged between iPhone and Tomcat. But these packets don't trigger any action on tomcat ...

    I finally found a workaround. I construct the Sencha form with attribute standardSubmit=true. The submition is then succesfull on http and https protocol even when safari is relaunched.

    Thanks for your help.

Tags for this Thread

Posting Permissions

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