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. How to connect via API?
QtWS25 Last Chance

How to connect via API?

Scheduled Pinned Locked Moved Solved General and Desktop
66 Posts 8 Posters 11.5k 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.
  • M Mikeeeeee
    18 May 2019, 08:12

    My OS - Windows.

    S Offline
    S Offline
    sierdzio
    Moderators
    wrote on 18 May 2019, 09:38 last edited by
    #22

    @Mikeeeeee said in How to connect via API?:

    My OS - Windows.

    https://stackoverflow.com/questions/20351155/how-can-i-enable-ssl-in-qt-windows-application

    (Z(:^

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Mikeeeeee
      wrote on 18 May 2019, 10:32 last edited by
      #23

      downloaded openssl-1.1.1b and put it in the folder with the executable file. Did not help.
      In openssl-1.1.1b there is no libeay32.dll.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mikeeeeee
        wrote on 18 May 2019, 13:26 last edited by
        #24

        There is a file e_os.h in the main folder of the library .

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 May 2019, 20:18 last edited by
          #25

          What version of Qt are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • M Mikeeeeee
            17 May 2019, 19:06

            I installed everything in MaintenanceTool. Do I need to download additional OpenSSL?
            If you need to install OpenSSL, then how to connect it to Qt?

            V Offline
            V Offline
            VRonin
            wrote on 19 May 2019, 07:59 last edited by
            #26

            @Mikeeeeee said in How to connect via API?:

            I installed everything in MaintenanceTool

            Terrible idea

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mikeeeeee
              wrote on 19 May 2019, 08:05 last edited by
              #27

              I use Qt 5.12.2

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 19 May 2019, 20:55 last edited by
                #28

                Then try again with the latest version of the 1.0 series.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mikeeeeee
                  wrote on 20 May 2019, 08:21 last edited by
                  #29

                  I downloaded openssl-1.0.2r. There is no bin folder. No .exe files. No libeay32.dll. What to do with it?

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mikeeeeee
                    wrote on 20 May 2019, 08:28 last edited by
                    #30

                    I downloaded libeay32.dll ssleay32.dll and put them to the executable file and the project, but it still does not work.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 20 May 2019, 21:20 last edited by
                      #31

                      Still the same error or another one ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Mikeeeeee
                        wrote on 21 May 2019, 08:20 last edited by
                        #32

                        Same error: TLS initialization failed

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 21 May 2019, 21:36 last edited by
                          #33

                          Did you check whether you can connect to another https resource and if it triggers the same error ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            Mikeeeeee
                            wrote on 22 May 2019, 08:41 last edited by
                            #34

                            Not check. I don't know what other resource to connect to.

                            J P 2 Replies Last reply 22 May 2019, 08:43
                            0
                            • M Mikeeeeee
                              22 May 2019, 08:41

                              Not check. I don't know what other resource to connect to.

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 22 May 2019, 08:43 last edited by
                              #35
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mikeeeeee
                                wrote on 23 May 2019, 11:13 last edited by
                                #36

                                How to fix this error?

                                1 Reply Last reply
                                0
                                • M Mikeeeeee
                                  22 May 2019, 08:41

                                  Not check. I don't know what other resource to connect to.

                                  P Offline
                                  P Offline
                                  Pablo J. Rogina
                                  wrote on 23 May 2019, 13:55 last edited by
                                  #37

                                  @Mikeeeeee you may try a JSON testing site with secure connections, like https://jsonplaceholder.typicode.com

                                  i.e. https://jsonplaceholder.typicode.com/todos/1 will return:

                                  {
                                    "userId": 1,
                                    "id": 1,
                                    "title": "delectus aut autem",
                                    "completed": false
                                  }
                                  

                                  Upvote the answer(s) that helped you solve the issue
                                  Use "Topic Tools" button to mark your post as Solved
                                  Add screenshots via postimage.org
                                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    Mikeeeeee
                                    wrote on 23 May 2019, 14:34 last edited by
                                    #38

                                    @Pablo-J.-Rogina said in How to connect via API?:

                                    https://jsonplaceholder.typicode.com/todos/1

                                    Tried to send to this address and got an old error.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Mikeeeeee
                                      wrote on 23 May 2019, 14:37 last edited by
                                      #39

                                      And if you sent"http://json placeholder.typecode.com/todos/1" it works. Why https doesn't work?

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 23 May 2019, 20:45 last edited by
                                        #40

                                        Just to be sure add this to your code:

                                        qDebug() << QSslSocket::supportsSsl();
                                        qDebug() << QSslSocket::sslLibraryBuildVersionString();
                                        qDebug() << QSslSocket::sslLibraryVersionString();
                                        

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        1
                                        • M Offline
                                          M Offline
                                          Mikeeeeee
                                          wrote on 24 May 2019, 08:29 last edited by
                                          #41

                                          qDebug returns:
                                          qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
                                          false
                                          "OpenSSL 1.0.2p 14 Aug 2018"

                                          1 Reply Last reply
                                          0

                                          31/66

                                          20 May 2019, 21:20

                                          • Login

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