Hi,

Currently QML aborts the request if there are any SSL errors.  If you connect 
to a SSL server with a valid certificate etc. it should work.

If you, from C++, install your own network access manager you can handle and 
accept the SSL errors, in which case the request should succeed.

Cheers,

Aaron

On 01/05/2011, at 7:55 PM, ext Marek Sebera wrote:

Wish you nice day everyone,

I've just experienced problem, I can't get data with XMLHttpRequest from 
SSL/TLS served address.

Code snippet:

var xhr = new XMLHttpRequest();

    xhr.onreadystatechange = function(){

        console.log(xhr.readyState);

        if(xhr.readyState == XMLHttpRequest.DONE){

                 // Somecode here

        }

    }

    xhr.open("GET", url_api_https);

    xhr.send();


My problem is probably the same as these
 http://talk.maemo.org/showthread.php?t=70074

I use Mac 10.6.6, Qt Creator 2.1.0 (based on Qt 4.7.1), QML 1.0, emulator for 
Qt (Symbian Nokia, no matter what device i use)

I discovered that xhr.readyState is getting these values:
using HTTP: 1,2,3,4
using HTTPS 1,4

Thanks Beforehand

Marek Sebera
http://www.cleevio.com<http://www.cleevio.com/>
http://www.msebera.cz<http://www.msebera.cz/>
_______________________________________________
Qt-qml mailing list
[email protected]<mailto:[email protected]>
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to