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. Help to download files http qt
Qt 6.11 is out! See what's new in the release blog

Help to download files http qt

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 1.4k 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.
  • J Offline
    J Offline
    Jeronimo
    wrote on last edited by
    #1

    I'm doing http client very basic. But all time show me this error:

    "Error transferring web - server replied: Not Acceptable"
    

    I do like always:

    manager->get(QNetworkRequest(QUrl("web")));
    

    And deppend of the network request i show error or it's working.

    K raven-worxR 2 Replies Last reply
    0
    • J Jeronimo

      I'm doing http client very basic. But all time show me this error:

      "Error transferring web - server replied: Not Acceptable"
      

      I do like always:

      manager->get(QNetworkRequest(QUrl("web")));
      

      And deppend of the network request i show error or it's working.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Jeronimo

      Probably you just replaced a proper www-address with "web" for posting. That is not valid and cannot work.

      Did you try also with the short example code from the documentation?

      QNetworkAccessManager *manager = new QNetworkAccessManager(this);
      connect(manager, SIGNAL(finished(QNetworkReply*)),
              this, SLOT(replyFinished(QNetworkReply*)));
      
      manager->get(QNetworkRequest(QUrl("http://qt-project.org")));
      

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • J Jeronimo

        I'm doing http client very basic. But all time show me this error:

        "Error transferring web - server replied: Not Acceptable"
        

        I do like always:

        manager->get(QNetworkRequest(QUrl("web")));
        

        And deppend of the network request i show error or it's working.

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Jeronimo
        what kind of server is it? Since it returned "Not acceptable" (406)...

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        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