Changeset 8204 in ntrip for trunk/BNC/src/bncnetqueryudp.cpp
- Timestamp:
- Dec 11, 2017, 3:00:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryudp.cpp
r6787 r8204 124 124 // Send Request 125 125 // ------------ 126 QString uName = QUrl::fromPercentEncoding(_url.userName().to Ascii());127 QString passW = QUrl::fromPercentEncoding(_url.password().to Ascii());126 QString uName = QUrl::fromPercentEncoding(_url.userName().toLatin1()); 127 QString passW = QUrl::fromPercentEncoding(_url.password().toLatin1()); 128 128 QByteArray userAndPwd; 129 129 130 130 if(!uName.isEmpty() || !passW.isEmpty()) { 131 userAndPwd = "Authorization: Basic " + (uName.to Ascii() + ":" +132 passW.to Ascii()).toBase64() + "\r\n";131 userAndPwd = "Authorization: Basic " + (uName.toLatin1() + ":" + 132 passW.toLatin1()).toBase64() + "\r\n"; 133 133 } 134 134 135 QByteArray reqStr = "GET " + _url.path().to Ascii() + " HTTP/1.1\r\n"136 + "Host: " + _url.host().to Ascii() + "\r\n"135 QByteArray reqStr = "GET " + _url.path().toLatin1() + " HTTP/1.1\r\n" 136 + "Host: " + _url.host().toLatin1() + "\r\n" 137 137 + "Ntrip-Version: Ntrip/2.0\r\n" 138 138 + "User-Agent: NTRIP BNC/" BNCVERSION " (" BNC_OS ")\r\n";
Note:
See TracChangeset
for help on using the changeset viewer.