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. HTTP example code doesn't work in my app

HTTP example code doesn't work in my app

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 583 Views
  • 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
    JonathanA
    wrote on last edited by
    #1

    When I run the HTTP example code, it gets the data just fine from the https server I am using. But when I copy the code into my app, I get a bunch of SSL errors:

    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No TLS backend is available
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No TLS backend is available
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No TLS backend is available
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: No TLS backend is available
    qt.network.ssl: No functional TLS backend was found
    qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
    

    I don't see any special SSL handing in the HTTP app. Some kind of setup or something?

    JonBJ 1 Reply Last reply
    0
    • J JonathanA

      When I run the HTTP example code, it gets the data just fine from the https server I am using. But when I copy the code into my app, I get a bunch of SSL errors:

      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No TLS backend is available
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No TLS backend is available
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No TLS backend is available
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: No TLS backend is available
      qt.network.ssl: No functional TLS backend was found
      qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
      

      I don't see any special SSL handing in the HTTP app. Some kind of setup or something?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @JonathanA
      I believe you have to (a) link with the OpenSSL libraries and (b) have the runtimes found next to executable or on PATH. Is that the case for whatever "HTTP example code" you are referring to but not for your code/app?

      1 Reply Last reply
      1
      • J Offline
        J Offline
        JonathanA
        wrote on last edited by
        #3

        I am running them both from within Qt Creator and the Projects look very much the same.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JonathanA
          wrote on last edited by JonathanA
          #4

          And by "example code", I mean this code:

          https://code.qt.io/cgit/qt/qtbase.git/tree/examples/network/http?h=6.4

          In both cases, I am building with Qt 6.4.1

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JonathanA
            wrote on last edited by
            #5

            I have sort of figured it out. The DLLs I'm using are bringing along their own libssl and libcrypto and that seems to be interfering with the Qt SSL evaluation. It may be having a problem loading them and thus just giving up. The weird part now is if I delete all the DLLs from the build_* folder, everything works, until the "install" happens again and copies the DLLs back. But I don't know how it is running at all if I delete the DLLs from the build folder!

            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