QNetworkRequest errors on valid URL
-
I have the following code in a widget to get server replies:
@
manager = new QNetworkAccessManager(this);
QNetworkRequest request;
request.setUrl(QUrl(ServerURL));
request.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute,true);
reply = manager->get(request); <<<<<--- warnings on this lineconnect(reply, SIGNAL(finished()),this, SLOT(httpFinished())); connect(reply, SIGNAL(readyRead()),this, SLOT(httpReadyRead())); connect(reply, SIGNAL(sslErrors(QList<QSslError>)),this, SLOT(httpErrors(QList<QSslError>)));
@
The problem is that the re-implemented httpErrors() slot is not called but the application outputs:
"{anonymous}::qsslSocketCannotResolveSymbolWarning:125 - QSslSocket: cannot resolve TLSv1_1_server_method"
"{anonymous}::qsslSocketCannotResolveSymbolWarning:125 - QSslSocket: cannot resolve TLSv1_2_server_method"
"{anonymous}::qsslSocketCannotResolveSymbolWarning:125 - QSslSocket: cannot resolve TLSv1_1_server_method"
"{anonymous}::qsslSocketCannotResolveSymbolWarning:125 - QSslSocket: cannot resolve TLSv1_2_server_method"on a valid URL that does get valid, error free replies when supplied manually to a browser.
BTW the URL DOES produce valid reply data which is used in the widget. But it occurs much later after the socket errors are seen.
Environment:
Linux Mint 16 / Windows Vista / Windows XP Home Premium Media Edition
Qt 5.2.1I am not an expert in HTTP protocol so I am not sure what this means if anything since it seems to be a warning and not an error.