Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › XMLHttpRequest ssl get


Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #14948



    On android an secure call through XMLHttpRequest is not working.

    on IOS this is working fine.

    why is this?



    Felgo Team

    Hi Bas!

    What device (os version) are working on and which SDK version are you using for building?

    It usually also works on Android to make XMLHttpRequest calls with an https url. As an example, you should get a valid response from

        var xmlHttpReq = new XMLHttpRequest()
        xmlHttpReq.onreadystatechange = function() {
          if(xmlHttpReq.readyState == xmlHttpReq.DONE && xmlHttpReq.status == 200) {
            console.log("SUCCESS: "+JSON.stringify(xmlHttpReq.responseText))
          else if(xmlHttpReq.readyState == xmlHttpReq.DONE && xmlHttpReq.status != 200) {
            console.error("Error: Failed to load data from "+url+", status = "+xmlHttpReq.status+", response = "+XMLHttpRequest.responseText)
   "GET", "", true)

    Does this code work for you? If it does, your problem could also be related to the SSL server configuration.





    hi Günther,

    thanx for that, the example works fine!

    have to look at the SSL certificate then.

    thanx for the fast reply and excellent support 🙂



    i get the following error on an Android  tablet running android 6.0 : could not set SSL_CTRL_SET_TLSEXT_HOSTNAME, Server Name Indication disabled

    and then 7 times this error:

    (null):0 ((null)): QSslSocket: cannot call unresolved function CRYPTO_free

    when i look up the error the direction points me towards:



    Berka Frenfert

    Thanks a lot Günther. I removed the ‘s’ and my code is fine now.

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.