Index: trunk/BNC/RTCM3/clock_orbit_rtcm.c
===================================================================
--- trunk/BNC/RTCM3/clock_orbit_rtcm.c	(revision 1304)
+++ trunk/BNC/RTCM3/clock_orbit_rtcm.c	(revision 1305)
@@ -3,5 +3,5 @@
         Name:           clock_orbit_rtcm.c
         Project:        RTCM3
-        Version:        $Id: clock_orbit_rtcm.c,v 1.3 2008/08/15 16:29:40 weber Exp $
+        Version:        $Id: clock_orbit_rtcm.c,v 1.4.2.3 2008/12/19 09:29:13 mervart Exp $
         Authors:        Dirk Stöcker
         Description:    state space approach for RTCM3
@@ -10,5 +10,10 @@
 #include <stdio.h>
 #include <string.h>
+
+#ifndef sparc
 #include <stdint.h>
+#endif
+
+#include <sys/types.h>
 #include "clock_orbit_rtcm.h"
 
Index: trunk/BNC/RTCM3/rtcm3torinex.c
===================================================================
--- trunk/BNC/RTCM3/rtcm3torinex.c	(revision 1304)
+++ trunk/BNC/RTCM3/rtcm3torinex.c	(revision 1305)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.c,v 1.36 2008/12/03 08:33:16 stoecker Exp $
+  $Id: rtcm3torinex.c,v 1.21.2.1 2008/12/18 12:45:53 mervart Exp $
   Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu>
 
@@ -48,8 +48,12 @@
 #endif
 
+#ifndef isinf
+#  define isinf(x) 0
+#endif
+
 #include "rtcm3torinex.h"
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.36 $";
+static char revisionstr[] = "$Revision: 1.21.2.1 $";
 
 #ifndef COMPILEDATE
@@ -1685,5 +1689,5 @@
 
 #ifndef NO_RTCM3_MAIN
-static char datestr[]     = "$Date: 2008/12/03 08:33:16 $";
+static char datestr[]     = "$Date: 2008/12/18 12:45:53 $";
 
 /* The string, which is send as agent in HTTP request */
Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 1304)
+++ trunk/BNC/bnc.pro	(revision 1305)
@@ -27,4 +27,5 @@
           bnccaster.h bncrinex.h bncapp.h bncutils.h   bnchlpdlg.h    \
           bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h        \
+          bncnetrequest.h \
           RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
           RTCM/RTCM2_2021.h RTCM/rtcm_utils.h                         \
@@ -39,4 +40,5 @@
           bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp     \
           bnczerodecoder.cpp                                          \
+          bncnetrequest.cpp \
           RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
           RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp                     \
Index: trunk/BNC/bncapp.cpp
===================================================================
--- trunk/BNC/bncapp.cpp	(revision 1304)
+++ trunk/BNC/bncapp.cpp	(revision 1305)
@@ -437,17 +437,17 @@
   QByteArray allLines;
 
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n", (double)ep->IODE,
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n", (double)ep->IODE,
                ep->Crs, ep->Delta_n, ep->M0);
   allLines += line;
   
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n", ep->Cuc,
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n", ep->Cuc,
                ep->e, ep->Cus, ep->sqrt_A);
   allLines += line;
 
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n",
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n",
                (double) ep->TOE, ep->Cic, ep->OMEGA0, ep->Cis);
   allLines += line;
   
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n", ep->i0,
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n", ep->i0,
                ep->Crc, ep->omega, ep->OMEGADOT);
   allLines += line;
@@ -508,15 +508,15 @@
   QByteArray allLines;
 
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n", ep->x_pos,
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n", ep->x_pos,
                ep->x_velocity, ep->x_acceleration, 
                (ep->flags & GLOEPHF_UNHEALTHY) ? 1.0 : 0.0);
   allLines += line;
    
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n", ep->y_pos,
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n", ep->y_pos,
                ep->y_velocity, ep->y_acceleration, 
                (double) ep->frequency_number);
   allLines += line;
   
-  line.sprintf("    %18.11e %18.11e %18.11e %18.11e\n", ep->z_pos,
+  line.sprintf("     %18.11e %18.11e %18.11e %18.11e\n", ep->z_pos,
                ep->z_velocity, ep->z_acceleration, (double) ep->E);
   allLines += line;
Index: trunk/BNC/bncnetrequest.cpp
===================================================================
--- trunk/BNC/bncnetrequest.cpp	(revision 1304)
+++ trunk/BNC/bncnetrequest.cpp	(revision 1305)
@@ -71,32 +71,46 @@
   // Network Request
   // ---------------
-  QNetworkRequest request;
-  request.setUrl(mountPoint);
-  request.setRawHeader("User-Agent", "NTRIP BNC/" AGENTVERSION);
-  request.setRawHeader("Host", mountPoint.host().toAscii());
+///  QNetworkRequest request;
+///  request.setUrl(mountPoint);
+///  request.setRawHeader("User-Agent", "NTRIP BNC/" AGENTVERSION);
+///  request.setRawHeader("Host", mountPoint.host().toAscii());
+///
+///  QString uName = QUrl::fromPercentEncoding(mountPoint.userName().toAscii());
+///  QString passW = QUrl::fromPercentEncoding(mountPoint.password().toAscii());
+///  if (!uName.isEmpty() || !passW.isEmpty()) {
+///    QByteArray userAndPwd = "Basic " + (uName.toAscii() + ":" +
+///                                        passW.toAscii()).toBase64();
+///    request.setRawHeader("Authorization", userAndPwd);
+///  }
+///  
+///  if (!ggaStr.isEmpty()) {
+///    request.setRawHeader("", ggaStr);
+///  }
 
-  QString uName = QUrl::fromPercentEncoding(mountPoint.userName().toAscii());
-  QString passW = QUrl::fromPercentEncoding(mountPoint.password().toAscii());
-  if (!uName.isEmpty() || !passW.isEmpty()) {
-    QByteArray userAndPwd = "Basic " + (uName.toAscii() + ":" +
-                                        passW.toAscii()).toBase64();
-    request.setRawHeader("Authorization", userAndPwd);
-  }
-  
-  if (!ggaStr.isEmpty()) {
-    request.setRawHeader("", ggaStr);
+  QHttpRequestHeader header("GET", "/CBRU0", 1, 1);
+
+  header.addValue("User-Agent", "NTRIP BNC/1.7");
+
+  QByteArray userAndPwd = "Basic " + QByteArray("cvutlukes:monitoring").toBase64();
+  header.addValue("Authorization", userAndPwd);
+
+  QHttp* http = new QHttp("czeposr.cuzk.cz", 2101);
+
+  connect(http, SIGNAL(readyRead(const QHttpResponseHeader&)), 
+          this, SLOT(slotReadyRead()));
+
+  QBuffer buffer;
+  http->request(header, 0, &buffer);
+
+  while (true) {
+    if (buffer.bytesAvailable()) {
+      QByteArray arr = buffer.readAll();
+      cout << arr.data();
+    }
+    else {
+      buffer.waitForReadyRead(1000);
+    }
   }
 
-  // Submit Request
-  // --------------
-  _reply = _manager->get(request);
-
-  connect(_reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));
-
-  connect(_reply, SIGNAL(error(QNetworkReply::NetworkError)),
-          this, SLOT(slotError(QNetworkReply::NetworkError)));
-
-  connect(_reply, SIGNAL(sslErrors(QList<QSslError>)),
-          this, SLOT(slotSslErrors(QList<QSslError>)));
 
   return success;
Index: trunk/BNC/bnctabledlg.cpp
===================================================================
--- trunk/BNC/bnctabledlg.cpp	(revision 1304)
+++ trunk/BNC/bnctabledlg.cpp	(revision 1305)
@@ -41,4 +41,5 @@
 #include "bnctabledlg.h"
 #include "bncgetthread.h"
+#include "bncnetrequest.h"
 
 // Constructor
@@ -154,4 +155,10 @@
   url.setHost(casterHost);
   url.setPort(casterPort);
+
+  //// beg test
+  bncNetRequest* req = new bncNetRequest;
+  req->request(url, "");
+  return success;
+  //// end test
 
   // Send the Request
