I'm using QNetworkAccessManager to upload files using FTP.
I am "putting" the contents of a QByteArray not a file.
When the "put" occurs, I get the following warnings:

QSslSocket: cannot resolve TLSv1_1_client_method
QSslSocket: cannot resolve TLSv1_2_client_method
QSslSocket: cannot resolve TLSv1_1_server_method
QSslSocket: cannot resolve TLSv1_2_server_method
QSslSocket: cannot resolve SSL_select_next_proto
QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
QIODevice::read: device not open
These are puzzling to me because:
A: The data I am attempting to send arrives at the server just fine.
B: I am using FTP not SFTP so a secure socket layer is not involved. Why am I seeing SSL warnings?
C: I am putting a QByteArray so there is no file to be read. What QIODevice is not open for read?

Here is a snippet of my code:

Qt Code:
  1. In .h file:
  2. QNetworkAccessManager namAlert;
  3.  
  4. In .cpp file:
  5. QString sTMDMgs("Here is some data.");
  6. QByteArray baTMD(sTMDMsg.toUtf8().data());
  7. connect(&namAlert, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
  8. QUrl url("ftp://" + sFTPHost + "/" + sTMDFile);
  9. url.setUserName(sFTPUser);
  10. url.setPassword(sFTPPass);
  11. namAlert.put(QNetworkRequest(url), baTMD);
  12.  
  13. void ALERT::replyFinished(QNetworkReply *reply)
  14. {
  15. #ifdef DEBUG
  16. qDebug() << "Reply finished.";
  17. #endif
  18.  
  19. if (reply->error())
  20. {
  21. qDebug() << reply->errorString();
  22. }
  23. reply->deleteLater();
  24. }
To copy to clipboard, switch view to plain text mode 

Thanks,
Karl