[Qt-qml] QML XMLHttpRequest SSL/TLS - HTTPS - Probably Bug?

aaron.kennedy at nokia.com aaron.kennedy at nokia.com
Wed May 4 03:11:42 CEST 2011


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
Qt-qml at qt.nokia.com<mailto:Qt-qml at qt.nokia.com>
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110504/ed2ac206/attachment.html 


More information about the Qt-qml mailing list