PDA

View Full Version : QNetworkAccessManager / cookies and load balancing



migel
31st October 2011, 12:33
Hi

I am having problem of getting it right. I receive data corrupt message from the server by random. And I think it happens because the load balancing ( haproxy).
I set cookies to QNetworkAccessManager and some reason it does not work when it connects to the other server.


QNetworkAccessManager* manager = new CachingNetworkAccessManager(parent);
QNetworkCookieJar* cookies = getCookies();
manager->setCookieJar(cookies);
cookies->setParent(0);

A WebKit is used to display an html. How other browsers handle such a thing of setting cookies ?

Thanks for looking