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


Ignore:
Timestamp:
Oct 5, 2006, 5:32:52 PM (18 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r194 r199  
    8383  hlp.setPath(mountPoint.path());
    8484
    85   QByteArray  reqStr = "GET " + hlp.toEncoded() +
    86                        " HTTP/1.0\r\n"
    87                        "User-Agent: NTRIP BNC 1.0\r\n"
    88                        "Authorization: Basic " +
    89                        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                             {
     95  reqStr = "GET " + hlp.toEncoded() +
     96           " HTTP/1.0\r\n"
     97           "User-Agent: NTRIP BNC 1.0\r\n"
     98           "Authorization: Basic " +
     99           userAndPwd.toBase64() + "\r\n\r\n";
     100                             }
    90101
    91102  msg += reqStr;
Note: See TracChangeset for help on using the changeset viewer.