Index: /trunk/BNC/bncsocket.cpp
===================================================================
--- /trunk/BNC/bncsocket.cpp	(revision 1357)
+++ /trunk/BNC/bncsocket.cpp	(revision 1358)
@@ -292,6 +292,9 @@
 ////////////////////////////////////////////////////////////////////////////
 void bncSocket::slotRequestFinished(int id, bool error) {
-  cout << "slotRequestFinished " << id << " " << error << endl;
-  this->deleteLater();
+  cout << "slotRequestFinished " << id << endl;
+  if (error) {
+    cout << "error: " << _http->error() << " " 
+         << _http->errorString().toAscii().data() << endl;
+  }
 }
 
@@ -300,4 +303,6 @@
 void bncSocket::slotReadyRead(const QHttpResponseHeader&) {
   cout << "slotReadyRead" << endl;
+  QByteArray buffer = _http->readAll();
+  cout << buffer.data();
 }
 
@@ -311,5 +316,9 @@
 ////////////////////////////////////////////////////////////////////////////
 void bncSocket::slotDone(bool error) {
-  cout << "slotDone " << error << endl;
+  cout << "slotDone " << endl;
+  if (error) {
+    cout << "error: " << _http->error() << " " 
+         << _http->errorString().toAscii().data() << endl;
+  }
 }
 
@@ -328,10 +337,16 @@
   _http->setSocket(_socket);
 
+  _http->setHost(url.host());
+
   // Network Request
   // ---------------
-  QHttpRequestHeader request("GET", url.path());
+  QString path = url.path();
+  if (path.isEmpty()) {
+    path = "/";
+  }
+  QHttpRequestHeader request("GET", path);
   request.addValue("Host"         , url.host().toAscii());
   request.addValue("Ntrip-Version", "NTRIP/2.0");
-  request.addValue("User-Agent"   , "NTRIP BNC/1.7");
+  request.addValue("User-Agent"   , "NTRIP BNC/" BNCVERSION);
   if (!url.userName().isEmpty()) {
     request.addValue("Authorization", "Basic " + 
@@ -349,4 +364,6 @@
           this, SLOT(slotSslErrors(const QList<QSslError>&)));
 
+  _http->request(request);
+
   return success;
 }
Index: /trunk/BNC/bnctabledlg.cpp
===================================================================
--- /trunk/BNC/bnctabledlg.cpp	(revision 1357)
+++ /trunk/BNC/bnctabledlg.cpp	(revision 1358)
@@ -219,5 +219,5 @@
     }
   }
-  delete socket;
+  ///  delete socket;
 
   allTables.insert(casterHost, allLines);
