Changeset 214 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Oct 6, 2006, 5:12:52 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r207 r214  
    8383  hlp.setPath(mountPoint.path());
    8484
    85   if (hlp.path().isEmpty()) {
    86     hlp.setPath("/");
    87   }
    88 
    89   QByteArray  reqStr = "GET " + hlp.path().toAscii() +
    90                        " HTTP/1.0\r\n"
    91                        "User-Agent: NTRIP BNC 1.0\r\n"
    92                        "Authorization: Basic " +
    93                        userAndPwd.toBase64() + "\r\n\r\n";
     85  QByteArray reqStr;
     86  if ( proxyHost.isEmpty() ) {
     87   if (hlp.path().indexOf("/") != 0) hlp.setPath("/");
     88   reqStr = "GET " + hlp.path().toAscii() +
     89            " HTTP/1.0\r\n"
     90            "User-Agent: NTRIP BNC 1.0\r\n"
     91            "Authorization: Basic " +
     92            userAndPwd.toBase64() + "\r\n\r\n";
     93   } else {
     94   reqStr = "GET " + hlp.toEncoded() +
     95            " HTTP/1.0\r\n"
     96            "User-Agent: NTRIP BNC 1.0\r\n"
     97            "Authorization: Basic " +
     98            userAndPwd.toBase64() + "\r\n\r\n";
     99  }
    94100
    95101  msg += reqStr;
Note: See TracChangeset for help on using the changeset viewer.