6 property bool dataOK: false
8 Component.onCompleted: {
9 var x = new XMLHttpRequest;
11 x.setRequestHeader("Content-Type", "text/plain");
12 x.setRequestHeader("Accept-Language","en-US");
15 x.onreadystatechange = function() {
16 if (x.readyState == XMLHttpRequest.DONE) {
17 dataOK = (x.responseText == "QML Rocks!\n");
21 x.send("My Sent Data");