t-Charset&quot;] = &quot;ISO-8859-1,utf-8;q=0.7,*;q=0.3&quot;
h[&quot;Referer&quot;] = &quot;http://www.cornedbeef.fr/jeu/&quot;

# Obtenir le formulaire de login + cookie
cnx = httplib2.Http()
resp, data = cnx.request(&quot;http://www.cornedbeef.fr/beef/login&quot;, headers=h)

cookie_name = resp[&quot;set-cookie&quot;].split(&quot;=&quot;)[0]
cookie = resp[&quot;set-cookie&quot;].split(&quot;;&quot;)[0] + &quot;; mt_redirect=true&quot;
h[&quot;Cookie&quot;] = cookie
print
print &quot;Connecting...&quot;
p