Hi,
Im developing a QT(5.4.1) QML/JS application and im trying to make the following GET to an mvc web api application hosted in my IIS
https://localhost/*****/api/**Contro...**?**params***
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET",url,true);
//xmlhttp.setRequestHeader("Content-type","application/json; charset=utf-8");//"application/x-www-form-urlencoded");//
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
loginresult(xmlhttp.responseText,codeapp);
}
else{
console.log("LoginMsgLog:"+xmlhttp.readyState+"/"+xmlhttp.status)//qml: LoginMsgLog:4/0
}
};
xmlhttp.send();
It is working good making the same GET in html/javascript
but making the same GET in QT application i get readystate=4 and readystatus=0
I also installed OpenSSL for Win64 to solve some errors (http://stackoverflow.com/questions/1...ith-qsslsocket)
Could anybody help me?
Thank u in advance
Bookmarks