Replacement for QFtp
-
Hi and welcome to DevNet,
AFAIK the official class is "QNetworkAccessManager":http://qt-project.org/doc/qt-4.8/qnetworkaccessmanager.html
-
i think QNAM only can download and upload files by FTP.
I think you either have to stick with QFtp or use an external ftp library.I think uploads with passwords are possible if you already integrate it into the url.
e.g. username:pw@host.com -
Isn't "this":http://qt-project.org/doc/qt-4.8/qnetworkaccessmanager.html#authenticationRequired what you are looking for for authentication ?
And for the ftp download, IIRC using a QUrl with ftp://path_to_file/file, should work.
-
Thanks,
I'll explain what I'm doing. I'm using a FTP client to replicate (download only) a software tree with ~500 files, over 1GB in size, most of them binary. I have a FTP user and password so that the user can authenticate.
Can I use QNAM to do that ? Because no mention of "binary" or "ASCII" mode is made anywhere in the documentation and the FTP protocol requires the client to set this mode for each file before starting the download.
-
IFAIR, QNAM operates in binary mode, but I can't remember exactly where I saw that...