Skip to content
Snippets Groups Projects
Commit f9c51109 authored by Langella Olivier's avatar Langella Olivier
Browse files

user agent and json header added

parent 75f3e644
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,9 @@ HttpVersion::HttpVersion()
m_request.setUrl(
QUrl("http://pappso.inra.fr/demande/ws/pappso_software/xtpcpp"));
m_request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
m_request.setRawHeader("User-Agent", QString("%1 %2").arg(SOFTWARE_NAME).arg(XTPCPP_VERSION).toLatin1());
mpa_manager->get(m_request);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment