Results 1 to 2 of 2

Thread: Explicit FTP over SSL/TLS (FTPES) wiht QNetworkAccessManager

  1. #1
    Join Date
    Nov 2010
    Qt products
    MacOS X Windows

    Default Explicit FTP over SSL/TLS (FTPES) wiht QNetworkAccessManager

    Hello there,
    im trying to download a file from a FTP server, which allows only secure connections. I already compiled Qt 4.6.3 with -openssl. Thats the code im using right now:

    Qt Code:
    1. void Ftp::get()
    2. {
    3. QNetworkAccessManager* manager = new QNetworkAccessManager()
    5. QUrl url = QUrl("ftp://localhost/test.txt");
    6. url.setUserName("root");
    7. url.setPassword("root");
    8. url.setPort(21);
    10. QNetworkRequest request(url);
    12. QSslConfiguration SslConfiguration(QSslConfiguration::defaultConfiguration());
    14. request.setSslConfiguration(SslConfiguration);
    16. manager->get(request);
    17. }
    To copy to clipboard, switch view to plain text mode 

    The ftp server answers:
    (000022)22.12.2010 11:18:36 - (not logged in) (> USER root
    (000022)22.12.2010 11:18:36 - (not logged in) (> 530 Have to use explicit SSL/TLS before logging on.
    Am I doing wrong or is FTPS/FTPES not possible? I tried to connect to "ftps://" or "ftpes://" instead of "ftp://" but that creates the error string
    "Protocol "ftps" is unknown"

    Thank you all!

  2. #2
    Join Date
    Mar 2012
    Qt products
    Qt4 Qt5
    Unix/X11 Windows Android

    Default Re: Explicit FTP over SSL/TLS (FTPES) wiht QNetworkAccessManager

    Four years later and it seems that SSL support for FTP is still not implemented in QNetworkAccessManager.

Similar Threads

  1. QNetworkAccessManager and https. help!
    By valerino in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2010, 14:13
  2. QNetworkAccessManager or QHttp
    By mind_freak in forum Qt Programming
    Replies: 3
    Last Post: 29th September 2009, 20:24
  3. Implicit vs. explicit
    By lni in forum Qt Programming
    Replies: 4
    Last Post: 22nd September 2009, 02:26
  4. What does "explicit" mean?
    By learning_qt in forum Qt Programming
    Replies: 6
    Last Post: 26th September 2008, 10:24
  5. explicit cast building own math library
    By mickey in forum General Programming
    Replies: 6
    Last Post: 7th February 2008, 05:48

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.