View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#4
Time for bed now, I guess I'm working now to many hours on this login problem. A break will always be a good idea or I'm afraid google will lock my account - "suspicion of a account hacking attack"

Originally Posted by Reffyyyy View Post
It's heavily advised to only use one QNetworkAccessManager.
I've changed my code and have now only a single QNetworkAccessManager for the communication. Still the same cookie problem.

Originally Posted by Reffyyyy View Post
It doesn't look like you've encoded the query, maybe you could try that.
If I understood the documentation correctly they are getting encoded: QUrl::addQueryItem
Inserts the pair key = value into the query string of the URL.

The key/value pair is encoded before it is added to the query. The pair is converted into separate strings internally. The key and value is first encoded into UTF-8 and then delimited by the character returned by valueDelimiter(). Each key/value pair is delimited by the character returned by pairDelimiter().

Note: This method does not encode spaces (ASCII 0x20) as plus (+) signs, like HTML forms do. If you need that kind of encoding, you must encode the value yourself and use QUrl::addEncodedQueryItem.
But thanks for your hints. If you have further ideas please let me know!
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.
 

The Following User Says Thank You to helex For This Useful Post: