Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNetworkRequest errors on valid URL
Forum Updated to NodeBB v4.3 + New Features

QNetworkRequest errors on valid URL

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 961 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ad5xj
    wrote on last edited by
    #1

    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.

    Ken AD5XJ

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lutzhell
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ad5xj
        wrote on last edited by
        #3

        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.

        Ken AD5XJ

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved