This seems to be a standard http authentication.
You have to do something like this:
QString credentials
= m_userName
+ ":" + m_password;
credentials = credentials.toUtf8().toBase64();
credentials = "Basic " + credentials;
header.setValue("Authorization",credentials);
QString credentials = m_userName + ":" + m_password;
credentials = credentials.toUtf8().toBase64();
credentials = "Basic " + credentials;
header.setValue("Authorization",credentials);
To copy to clipboard, switch view to plain text mode
Please notice toBase64.
Bookmarks