stuff to click
difficulty 4 comments 3 added 25.02.2011 category Qt

For some time I was using my own CMS client to upload images to my sites. It was very convenient to use ready Qt solution — QFtp class. But after changing my hosting company I faced a trouble, new hosting accepted only secure FTP uploads. I searched the net looking for help on how to deal with FTPES with Qt but found just general recommendations to use QSslSocket class. So I explored the possibility of tweaking the QFtp class which also would minimize code changes in my app. This article demonstrates how to implement basic secure FTP with TLS authorization slightly tweaking QFtp. Though it is not the perfect solution it worked for me. The limitations of this approach is that it works only with explicit FTPS (FTPES), it doesn't work with certificates and also I sacrificed the active mode to keep things simple. But feel free to implement these yourselves!