Changeset 1020 in ntrip
- Timestamp:
- Aug 6, 2008, 11:28:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r940 r1020 206 206 QByteArray reqStr; 207 207 if ( proxyHost.isEmpty() ) { 208 if (hlp.path().indexOf("/") != 0) hlp.setPath("/"); 209 reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n"; 210 } else { 211 reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n"; 208 if (hlp.path().indexOf("/") != 0) { 209 hlp.setPath("/"); 210 } 211 reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n"; 212 } else { 213 reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n"; 212 214 } 213 215 reqStr += "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n" 214 "Host: " + hlp.host().toAscii() + "\r\n" 215 + userAndPwd + "\r\n"; 216 217 // NMEA string to handle VRS stream 218 // -------------------------------- 219 216 "Host: " + hlp.host().toAscii() + "\r\n" 217 + userAndPwd + "\r\n"; 218 219 // NMEA string to handle VRS stream 220 // -------------------------------- 220 221 double lat, lon; 221 222
Note:
See TracChangeset
for help on using the changeset viewer.