Cookie: CAD=70991521%231255259845%230%230%23%230; T3E=%3D%3DANhNmM4MmZ4YDO6YDOzEjNyUTNyEjO1ATNygDO3oTMtojO6oDO2AjM5oDMjgjNwITOjgjNwITO\r\n
QNetworkAccessMAnager *manager;manager->cookieJar()->setCookiesFromUrl(QList<QNetworkCookie>, QUrl("my_url"));
QNetworkRequest *request;request->setRawHeader("Cookie", "CAD=122345; T3=abc");manager->get(*request);
request.setRawHeader("Cookie", "someparameter=somevalue");
QList<QNetworkCookie> cookies; cookies.append(QNetworkCookie("remixchk", "5")); cookies.append(QNetworkCookie("remixsid", "someparameter")); request.setHeader(QNetworkRequest::CookieHeader, QVariant::fromValue(cookies));
C++ (Qt)networkAccessManager()->setCookieJar(myCookieJar);
C++ (Qt)if (static_cast<QNetworkRequest::LoadControl> (request.attribute(QNetworkRequest::CookieLoadControlAttribute, QNetworkRequest::Automatic).toInt()) == QNetworkRequest::Automatic) { if (d->cookieJar) { QList<QNetworkCookie> cookies = d->cookieJar->cookiesForUrl(request.url()); if (!cookies.isEmpty()) request.setHeader(QNetworkRequest::CookieHeader, qVariantFromValue(cookies)); } }