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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support