Yes is true for the QString section.

When i'm try connected until build a cookie i have a redirection with the cookie in the url.
https://cas.univ-ubs.fr/login;jsessionid=EC0A6DAAB7A739B99B00B17200346C84" .
When i don't used the cookie i just have a redirection.

In python i just used (HTTPCookieProcessor)
Qt Code:
  1. def __init__(self):
  2. self.CJ = CookieJar()
  3. self.connection = build_opener(HTTPCookieProcessor(self.CJ))
  4.  
  5. def getConnection(self):
  6. try:
  7. u = self.connection.open("https://cas.univ-ubs.fr/login").read()
  8. f = '<input type="hidden" name="lt" value="'
  9. l = u.rfind(f)
  10. r = u.rfind('" />\n\t\t\t\t\t\t<input type="hidden" name="_eventId"')
  11. data = u[l+len(f):r]
  12. params = urlencode({
  13. "username":self.username,
  14. "password":self.password,
  15. "lt":data,
  16. "_eventId":"submit",
  17. "submit":"SE CONNECTER"
  18. })
  19.  
  20. self.connection.open("https://cas.univ-ubs.fr/login", params)
To copy to clipboard, switch view to plain text mode 

I can't translate perfectly in C++ with Qt but i think is possible to work.