[Qt-interest] ftp with QNetworkAccessManager
Thiago Macieira
thiago at kde.org
Sat Feb 6 22:19:11 CET 2010
Em Sábado 6. Fevereiro 2010, às 21.54.19, Enrique Cuesta escreveu:
> Hi !
>
> any could give me an example of using ftp with QNetworkAccessManager?
> I would like just login...
> send some commands (cd, delete, )
> get a file
> and logout...
>
> The documentation about QNetworkAccessManager is not very clear...
To download a file:
QNetworkRequest req(QUrl("ftp://ftp.example.com/path/to/file"));
QNetworkReply *reply = manager.get(req);
To delete it:
QNetworkReply *reply = manager.delete(req);
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100206/9cc2857c/attachment.bin
More information about the Qt-interest-old
mailing list