Changeset 1298 in ntrip


Ignore:
Timestamp:
Dec 12, 2008, 10:51:05 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1292 r1298  
    261261  hlp.setPath(mountPoint.path());
    262262
    263   QByteArray reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n"
    264                     + "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n"
    265                       "Host: " + hlp.host().toAscii() + "\r\n"
    266                     + userAndPwd + "\r\n";
     263  QByteArray reqStr;
     264  if ( proxyHost.isEmpty() ) {
     265    if (hlp.path().indexOf("/") != 0) hlp.setPath("/");
     266    reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n"
     267             + "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n"
     268             + userAndPwd + "\r\n";
     269  } else {
     270    reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n"
     271             + "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n"
     272             + "Host: " + hlp.host().toAscii() + "\r\n"
     273             + userAndPwd + "\r\n";
     274  }
    267275
    268276  // NMEA string to handle VRS stream
Note: See TracChangeset for help on using the changeset viewer.