QML Image.source authentication
I am trying to get an image from a web-page, but to access it it requires user authentication. To get xml information I use XMLHttpRequest():
var httpReq = new XMLHttpRequest()
var url = "http://" + ip + ":" + port + "/requests/status.xml";
httpReq.open("GET", url, true);
// Send the proper header information along with the request
httpReq.setRequestHeader("Authorization", "Basic " + Qt.btoa(username + ":" + password));
but that only works for XML data, I can access the image by using:
art.source = "http://" + username + ":" + password + "@" + ip + ":" + port + "/art?item=" ;
The problem is that password is passed as plain text.
How would I go make it work without passing the password as plain text?