- Timestamp:
- Dec 7, 2015, 5:54:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryv2.cpp
r7513 r7612 11 11 * Created: 27-Dec-2008 12 12 * 13 * Changes: 13 * Changes: 14 14 * 15 15 * -----------------------------------------------------------------------*/ … … 28 28 _secure = secure; 29 29 _manager = new QNetworkAccessManager(this); 30 connect(_manager, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, 30 connect(_manager, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, 31 31 QAuthenticator*)), 32 this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&, 32 this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&, 33 33 QAuthenticator*))); 34 34 _reply = 0; … … 38 38 39 39 bncSettings settings; 40 _sslIgnoreErrors = 40 _sslIgnoreErrors = 41 41 (Qt::CheckState(settings.value("sslIgnoreErrors").toInt()) == Qt::Checked); 42 42 … … 72 72 _status = error; 73 73 emit newMessage(_url.path().toAscii().replace(0,1,"") + 74 ": NetQueryV2: server replied: " + 74 ": NetQueryV2: server replied: " + 75 75 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), 76 76 true); … … 81 81 } 82 82 83 // 84 //////////////////////////////////////////////////////////////////////////// 85 void bncNetQueryV2::slotProxyAuthenticationRequired(const QNetworkProxy&, 83 // 84 //////////////////////////////////////////////////////////////////////////// 85 void bncNetQueryV2::slotProxyAuthenticationRequired(const QNetworkProxy&, 86 86 QAuthenticator*) { 87 87 emit newMessage("slotProxyAuthenticationRequired", true); … … 145 145 QString uName = QUrl::fromPercentEncoding(_url.userName().toAscii()); 146 146 QString passW = QUrl::fromPercentEncoding(_url.password().toAscii()); 147 request.setRawHeader("Authorization", "Basic " + 147 request.setRawHeader("Authorization", "Basic " + 148 148 (uName + ":" + passW).toAscii().toBase64()); 149 } 149 } 150 150 if (!gga.isEmpty()) { 151 151 request.setRawHeader("Ntrip-GGA", gga); … … 153 153 request.setRawHeader("Connection" , "close"); 154 154 155 delete _reply;156 155 _reply = _manager->get(request); 157 156 … … 207 206 } 208 207 209 // TSL/SSL 208 // TSL/SSL 210 209 //////////////////////////////////////////////////////////////////////////// 211 210 void bncNetQueryV2::slotSslErrors(QList<QSslError> errors) {
Note:
See TracChangeset
for help on using the changeset viewer.