t;Accept-Charset&quot;] = &quot;ISO-8859-1,utf-8;q=0.7,*;q=0.3&quot;
h[&quot;Accept-Encoding&quot;] = &quot;identity&quot;

cnx = httplib2.Http()

# Connexion premiere page pour avoir un cookie
resp, data = cnx.request(&quot;http://www.trocool.fr/wesh-game&quot;, headers=h)

PHPSESSID = resp[&quot;set-cookie&quot;].split(&quot;=&quot;)[1].split(&quot;;&quot;)[0]
h[&quot;Cookie&quot;] = &quot;PHPSESSID=&quot; + PHPSESSID + &quot;;&quot;
print h[&quot;Cookie&quot;]

# Recuperation du &quot;captcha&quot;
soup 