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 line

    connect(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.1

    I 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.



  • Hi,

    maybe your openSSL version is too old. You could try to update openSSL.

    Do you have the problem on all operating systems you use?

    On Windows it could be neccessary to install openSSL



  • That is one thing I have not checked. Since the error was observed in XP SP3 you could be right.

    I will try it on Linux Mint and see if the same error occurs.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.