I have a program that works well from Qt 5.6
const QUrl qurl(url);
QNetworkRequest request(qurl);
//github redirects the request, so this attribute must be set to true, otherwise returns nothing
//from qt5.6
request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
QNetworkAccessManager manager;
QNetworkReply * reply = manager.get(request);
Unfortunately this only works from Qt 5.6
Could anyone help me to make the redirect o Qt5.5 (Ubuntu 16.04) I guess I have to follow the redirection manually, but I have found no tutorial on it.
I found a solution for Qt4 -> QNetworkReply and 301 redirect
I was hoping there is something more "updated" for Qt5.
Thanks