MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getResults

Method getResults

src/openms/source/FORMAT/MascotRemoteQuery.cpp:218–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 void MascotRemoteQuery::getResults(const QString& results_path)
219 {
220 // Tidy up again and run another request...
221#ifdef MASCOTREMOTEQUERY_DEBUG
222 cerr << "\nvoid MascotRemoteQuery::getResults()" << "\n";
223 cerr << " from path " << results_path.toStdString() << "\n";
224#endif
225
226 QUrl url = buildUrl_(results_path.toStdString());
227 QNetworkRequest request(url);
228
229#ifdef MASCOTREMOTEQUERY_DEBUG
230 cerr << " server_path_ " << server_path_ << std::endl;
231 cerr << " URL : " << url.toDisplayString().toStdString() << std::endl;
232#endif
233
234 // header
235 request.setRawHeader("Host", host_name_.c_str());
236 // request.setRawHeader("Host", String("http://www.chuchitisch.ch").c_str());
237 request.setRawHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
238 request.setRawHeader("Keep-Alive", "300");
239 request.setRawHeader("Connection", "keep-alive");
240 if (cookie_ != "")
241 {
242 request.setRawHeader(QByteArray::fromStdString("Cookie"), QByteArray::fromStdString(cookie_.toStdString()));
243 }
244
245 QNetworkReply* pReply = manager_->get(request);
246 connect(pReply, SIGNAL(uploadProgress(qint64, qint64)), this, SLOT(uploadProgress(qint64, qint64)));
247
248#ifdef MASCOTREMOTEQUERY_DEBUG
249 logHeader_(request, "request results");
250 cerr << " getResults expects reply " << pReply << std::endl;
251#endif
252
253 }
254
255 void MascotRemoteQuery::followRedirect(QNetworkReply * r)
256 {

Callers 13

main_Method · 0.45
main_Method · 0.45
clusterMethod · 0.45
computeMethod · 0.45
START_SECTIONFunction · 0.45
START_SECTIONFunction · 0.45
START_SECTIONFunction · 0.45
START_SECTIONFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 5

START_SECTIONFunction · 0.36
START_SECTIONFunction · 0.36
START_SECTIONFunction · 0.36
START_SECTIONFunction · 0.36
START_SECTIONFunction · 0.36