Index: trunk/BNC/src/upload/bncuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 9736)
+++ trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 9737)
@@ -254,4 +254,5 @@
       _outSocket->waitForBytesWritten();
       _outSocket->waitForReadyRead();
+
       QByteArray ans = _outSocket->readAll();      //cout << ans.toStdString().c_str() << endl;
       if (ans.indexOf("200") == -1) {
@@ -294,8 +295,5 @@
   _outSocket->waitForReadyRead();
 
-   QByteArray ans = "";
-  if (_outSocket->canReadLine()) {
-    ans = _outSocket->readLine();  //cout << "ans: " << ans.toStdString().c_str() << endl;
-  }
+   QByteArray ans = _outSocket->readAll();  //cout << "ans: " << ans.toStdString().c_str() << endl;
 
   if (ans.indexOf("200") == -1) {
@@ -341,4 +339,6 @@
 
 void bncUploadCaster::slotSslSocketConnectionClosed() {
+  disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
+  disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
   emit(newMessage("slotSslSocketConnectionClosed", true));
   if (_outSocket) {
