hi Alex,
I can do curl from same client to same server without problem.
seemed only using httpreuqest had issue.
Same program runs ok on my desktop to the same server too.
I can setup a teamviewer if that helps.
I do need advise on this. otherwise I am pretty much doomed. we built product years on top of vplay. and this issue is such fundamental I can’t tell how to workaround at this moment.
I simplified my code as below. Just a https get.
import Felgo 3.0
import QtQuick 2.0
App {
// You get free licenseKeys from https://felgo.com/licenseKey
// With a licenseKey you can:
// * Publish your games & apps for the app stores
// * Remove the Felgo Splash Screen or set a custom one (available with the Pro Licenses)
// * Add plugins to monetize, analyze & improve your apps (available with the Pro Licenses)
//licenseKey: "<generate one from https://felgo.com/licenseKey>"
NavigationStack {
Page {
title: qsTr("Main Page")
AppTextField{
id: _text
anchors.centerIn: parent
width: dp(300)
height: dp(300)
}
AppButton{
id: _ssl
anchors.top: _text.bottom
text: "ssl"
onClicked: {
test("https://api.lianup.com:7777")
}
}
AppButton{
id: _nossl
anchors.top: _ssl.bottom
text: "nossl"
onClicked: {
test("http://api.lianup.com:8888")
}
}
}
}
function test(url){
_text.text += url +"\n";
HttpRequest
.get(url)
.timeout(1000000)
.send({})
.then(function(res) {
_text.text += " OK !";
console.log("res: " + JSON.stringify(res.body))
})
.catch(function(err){
_text.text += " bad !" + err.message + err.response;
console.log("http request err: " + err.message)
console.log(err.response)
})
;
}
}