Maybe it's worth to encode m_additionalAgentInformation with QUrl::toPercentEncoding(...) before setting it to header.
Maybe it's worth to encode m_additionalAge ntInformation with QUrl::toPercent Encoding( ...) before setting it to header.