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. QNetworkAccessManager - How to disable HELP command. (FTP)
QtWS25 Last Chance

QNetworkAccessManager - How to disable HELP command. (FTP)

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 1.9k 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.
  • F Offline
    F Offline
    FrozenToast
    wrote on last edited by
    #1

    Hi,

    Specs:
    QT 5.4
    Windows 7

    Problem:
    The HELP command gets called from my QT application every single time after a file gets downloaded, or in this case after it has logged in. (WIreshark image below)

    I've based my application on the Network Download Manager Example. (Which also calls the FTP HELP command)

    I'm trying to find a way to disable calling the HELP command but no luck.

    I'm doing this to reduce as much traffic as possible on my FTP server.

    I've noticed that when you download a file in qt4 using QFTP it does not call the HELP command.

    If it can't be disabled I believe I might be able to configure my FTP to reject HELP commands and return a 501 but I would rather find a better solution.

    alt text

    Thank you for your help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I can't answer directly to your question however, QFTP has been made usable with Qt 5 also if you'd like to continue using it.

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

      F 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        I can't answer directly to your question however, QFTP has been made usable with Qt 5 also if you'd like to continue using it.

        F Offline
        F Offline
        FrozenToast
        wrote on last edited by
        #3

        @SGaist

        Hi,

        Thanks for the reply but unfortunately I'm not in a position to use obsolete classes. (Not my call to make unfortunately)

        Regards.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should then check the QFtp class in Qt's sources. Note that you are using a relatively old version of Qt. If possible you should update if not the latest at least 5.6 which is LTS.

          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
          • F Offline
            F Offline
            FrozenToast
            wrote on last edited by
            #5

            I've managed a work around.

            You can view the link below with the changes I've made to the source code.

            https://bugreports.qt.io/browse/QTBUG-58747

            If the modifications don't get implemented it is possible to stop sending HELP requests without breaking everything. If you need any help implementing the changes please message me!

            I will mark this as solved.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              FrozenToast
              wrote on last edited by
              #6

              One last question. As I've modified the Qt source code do I have to submit the changes to Qt?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                You have to make them available to your customer.

                Note that every improvement you can provide will be appreciated and made available to all Qt users so it would be nice considering doing a submission.

                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

                • Login

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