      ping_url += &quot;&amp;t=&quot; + t
            head[&quot;Cookie&quot;] = &quot;PHPSESSID=&quot; + PHPSESSID
            resp, data = cnx.request(ping_url, headers=head)
            print ping_url
            if data.strip() != &quot;&quot;:
                print &quot;ping response:&quot;, data.strip()
            time.sleep(30)
            if ok == 0:
                break


# Page des jeux qui nous renvoie un cookie + formulaire login
resp, data = cnx.request(&quot;http://www.hyper.com/portail/acc