QNetworkRequest request(QUrl("http://chemogu.ru/login/ajax-login/"));request.setRawHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");request.setRawHeader("Accept", "application/json, text/javascript, */*; q=0.01");request.setRawHeader("X-Requested-With", "XMLHttpRequest");m_NAM.post(request, "login=******&password=******&remember=on&return-path=http%3A%2F%2Fchemogu.ru%2F&security_ls_key=f197d25d6a04db642aa23dfd7b14861f");
QNetworkAccessManager qnam;QNetworkCookieJar *cookieJar = new QNetworkCookieJar;qnam.setCookieJar(cookieJar);