Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QT6 QNetworkRequest and FTP
QtWS25 Last Chance

QT6 QNetworkRequest and FTP

Scheduled Pinned Locked Moved Unsolved Qt 6
qt6 ftpqnetworkrequest
22 Posts 10 Posters 7.0k 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.
  • K kkoehne
    23 May 2022, 15:05

    @SGaist said in QT6 QNetworkRequest and FTP:

    Nothing wrong with using FTP

    Well, there's lots of things wrong with FTP :) Can't remember who brought this link up, maybe it as even in some discussions about this very feature of Qt Network: https://mywiki.wooledge.org/FtpMustDie

    The security issue is probably fixed by SFTP, and 'don't break my workflow' is a valid requirement for a framework ... but I found the page entertaining.

    S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 23 May 2022, 15:26 last edited by
    #12

    @kkoehne Heeeey you cut the line short ! The content of the parenthesis was the most important !

    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
    • C Offline
      C Offline
      Charlie8741
      wrote on 27 Aug 2022, 12:16 last edited by Charlie8741
      #13

      Hi,
      Sorry to reply to this old thread, but do we have any news regarding FTP support ? I use it in my personal project and that missing support hold me from moving to Qt6...

      Thank you for your time !

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mike Trahearn 0
        wrote on 27 Aug 2022, 21:23 last edited by
        #14

        As a major worldwide company whose customers are also major and worldwide, we and our customers expect to be able to use FTP as a means of communication between our devices. Yes we have and use other modern and appropriate mechanisms available for primary communication protocols but we still have current use cases which will outlast the Qt6 lifetime. Please give bringing FTP back to Qt6 some serious consideration otherwise large companies with heavy investments in Qt are going to have to consider what would be a costly course of direction change with significant D&D and no ROI. Thank you.

        J 1 Reply Last reply 28 Aug 2022, 06:34
        0
        • M Mike Trahearn 0
          27 Aug 2022, 21:23

          As a major worldwide company whose customers are also major and worldwide, we and our customers expect to be able to use FTP as a means of communication between our devices. Yes we have and use other modern and appropriate mechanisms available for primary communication protocols but we still have current use cases which will outlast the Qt6 lifetime. Please give bringing FTP back to Qt6 some serious consideration otherwise large companies with heavy investments in Qt are going to have to consider what would be a costly course of direction change with significant D&D and no ROI. Thank you.

          J Offline
          J Offline
          JonB
          wrote on 28 Aug 2022, 06:34 last edited by
          #15

          @Mike-Trahearn-0
          I do not disagree with you, but be aware this is a user forum. We have no influence over what The Qt Company does. Your comments would be best addressed to them.

          M 1 Reply Last reply 29 Aug 2022, 00:20
          0
          • J JonB
            28 Aug 2022, 06:34

            @Mike-Trahearn-0
            I do not disagree with you, but be aware this is a user forum. We have no influence over what The Qt Company does. Your comments would be best addressed to them.

            M Offline
            M Offline
            Mike Trahearn 0
            wrote on 29 Aug 2022, 00:20 last edited by
            #16

            @JonB Thank you - they are very much aware I can assure you.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JKSH
              Moderators
              wrote on 1 Sept 2022, 02:04 last edited by
              #17

              Is there a strong reason why it must be done via a Qt-ish FTP API? How about using QProcess to run cURL?

              • https://en.wikipedia.org/wiki/CURL
              • https://everything.curl.dev/ftp/upload

              ...or perhaps WinSCP if you're supporting Windows only?

              • https://winscp.net/eng/docs/executables
              • https://winscp.net/eng/docs/scripting

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              1
              • L Offline
                L Offline
                legerborea
                wrote on 6 Sept 2022, 09:20 last edited by
                #18

                @JKSH
                Because using external binaries is not practical to implement. You have to manage binaries for all supported platforms (windows, macOS, linux) but the hard part is parsing output data, if you need to get status of download/upload, you have to parse output of curl.
                Yes, that can be done ! But this is not very practical...

                J 1 Reply Last reply 6 Sept 2022, 12:58
                1
                • L legerborea
                  6 Sept 2022, 09:20

                  @JKSH
                  Because using external binaries is not practical to implement. You have to manage binaries for all supported platforms (windows, macOS, linux) but the hard part is parsing output data, if you need to get status of download/upload, you have to parse output of curl.
                  Yes, that can be done ! But this is not very practical...

                  J Offline
                  J Offline
                  JKSH
                  Moderators
                  wrote on 6 Sept 2022, 12:58 last edited by
                  #19

                  @legerborea said in QT6 QNetworkRequest and FTP:

                  Because using external binaries is not practical to implement. You have to manage binaries for all supported platforms (windows, macOS, linux) but the hard part is parsing output data, if you need to get status of download/upload, you have to parse output of curl.

                  OK, how about using the libcurl library instead? That's very cross-platform.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  J 1 Reply Last reply 6 Sept 2022, 16:41
                  3
                  • J JKSH
                    6 Sept 2022, 12:58

                    @legerborea said in QT6 QNetworkRequest and FTP:

                    Because using external binaries is not practical to implement. You have to manage binaries for all supported platforms (windows, macOS, linux) but the hard part is parsing output data, if you need to get status of download/upload, you have to parse output of curl.

                    OK, how about using the libcurl library instead? That's very cross-platform.

                    J Offline
                    J Offline
                    JonB
                    wrote on 6 Sept 2022, 16:41 last edited by
                    #20

                    @JKSH That is a more viable answer! :)

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      legerborea
                      wrote on 7 Sept 2022, 13:43 last edited by legerborea 6 Aug 2023, 11:03
                      #21

                      Yes libcurl would be the one to use, but that need more development, I have a custom FTP class for Qt5 series (which use QNetworkAccessManager). So erase and rewrite all with libcurl... is very not practical (and add delay in development process).

                      Anyway, thank you for those informations and alternative solutions, I will consider libcurl.

                      FWIW, I've opened a bug ticket at: https://bugreports.qt.io/browse/QTBUG-111597

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        cedrix
                        wrote on 8 Oct 2022, 15:00 last edited by
                        #22

                        Hello, I also miss FTP since I switched to Qt 6. I don't like the idea of using libcurl because the more dependencies is added to an application, the more potential problems + the harder is the maintenance. I really hope that Qt will but back FTP support.

                        1 Reply Last reply
                        2

                        • Login

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