Not that proficient with QML, so I can only provide pseudo-code. The simplest form of HTTP authentication is through the Authorization
header containing the string Basic
followed by a whitespace and username and password separated by a colon :
in base64.
Assuming base64()
returns the b64 representation of passed data, this should do:
http.setRequestHeader("Authorization", "Basic " + base64(username + ":" + password));