Subject: AJAX and SSL
Posted By: rnzimiro Post Date: 8/30/2006 3:59:30 PM
Hello all
I just started working with AJAX technology and I must admit, it is quite fascinating. I am, however having a slight problem.
I am trying to POST data to a JAVA servlet that sits behind an SSL layer. If I try to access the servlet via the browser, I first get a certificate warning that give me the option to proceed or cancel. One I acknowledged I am good to go. I have tried to make the same POST using XMLHTTP but I keep receiving a blank response text from the server. The status codes I receive are 12019 and 12030.
The funny thing is it is not consistent. If I access the servlet via the browser and am successful, then in most cases I leave that session open and try to re-execute my code with the XMLHTTP API and I a get a successful transmission. Does anyone know what the cause of the could be

Thanks


Reply By: veigh Reply Date: 5/25/2007 3:00:41 AM
It's a bit tricky

As for me, i use first (index) page to ensure the browser can run AJAX (no AJAX in this page, however). If the browser is unsupported, i display such error message and provide a link to download firefox. This way, u can detect SSL in this static page, if browser were not in SSL yet, redirect it to SSL, so the session will be saved BEFORE u enter REAL AJAX Application.

Go to topic 60923

Return to index page 2
Return to index page 1