You may consider using QNetworkAccessManager or QFtp which should do this work for you.